ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

ExpressionEngine will only display the 404 Template if the requested Template Group in the URL does not exist.

March 09, 2012 10:07pm

Subscribe [1]
  • #1 / Mar 09, 2012 10:07pm

    Stefani Ann

    35 posts

    I have hit the limitation of the 404 redirect feature.

    From the user guide: ExpressionEngine will only display the 404 Template if the requested Template Group in the URL does not exist.

    Where do I go from here? How do I get people to see my 404 if them mistype an article name or something?

    Thanks!

  • #2 / Mar 09, 2012 10:28pm

    Bhashkar Yadav

    727 posts

    set “404 Page” from “Global Template Preferences” within Template Manager.

  • #3 / Mar 09, 2012 10:40pm

    Stefani Ann

    35 posts

    I already did that - it works if someone types http://www.mydomain.com/wrongurl.... BUT if they type http://www.mydomain.com/site/wrongurl then it doesnt work anymore. (I have a template group called SITE)

    I posted in tech support they basically just said its a limitation of the system…. but gave no hint as to where to go from here…

    Im running MSM too.

    Thanks!

  • #4 / Mar 09, 2012 11:06pm

    Bhashkar Yadav

    727 posts

    yes, it’s somehow EE URL scheme. EE treats the URI in a different manner.

    To overcome this, you have to give a check into all the index template of template group. and also in the templates which are checking segment if related to any data so that if there is wrong segment for that data it should be redirected to 404 page.

    to get the more details about EE url scheme look at ExpressionEngine URL Schematic

  • #5 / Mar 10, 2012 1:06am

    Stefani Ann

    35 posts

    Thanks for posting that its very informative. From what I can see, if you have strict urls enabled, and then someone writes mydomain.com/template/wrongurl then it should spit out the 404 - I do have strict urls enabled, but its not doing it? Im not very experience with EE still learning… can you explain to me what you mean by checking all the index templates? Where do i perform this check? is it in my htaccess file?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases