I have a section called 'news' (url: /news) and have setup in my templates folder /news/index.html which I could access previously. I then created a route: news/* to go to another template and then deleted it. I can now no longer access /news and it gives the 404 error page. I have duplicated the news template and renamed it to newsblah and when I go to the url /newsblah I can view the page.

I have cleared the cache on the settings page. Any ideas as to why this may be? very puzzling...

  • Can you post a screenshot of your Route? Aug 13 '14 at 13:32
  • @BrandonKelly I worked it out - I had a section called news which was interfering with the routing
    – Anthony
    Aug 13 '14 at 23:10
  • Great! Can you post an answer below explaining what the issues was, to help the next guy? Aug 13 '14 at 23:59

The issue was I had a section called news which was referencing a template that didn't exist. Craft saw that for the /news url it should call the template defined in the section, but as it didn't exist it was displaying the 'page not found' page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.