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.

404 redirect issues

October 01, 2009 1:23am

Subscribe [3]
  • #1 / Oct 01, 2009 1:23am

    Brian Klepper

    5 posts

    This question may be related to a resolved thread.

    I have all 404 redirects pointing to my 404 template group and this seems to take care of all traditional redirect issues. I have the real problems when I type in an exaggerate URL segment and the page will load without any css styling

    404 template loads properly:
    “displays 404 template properly” http://briannotbryan.com/?/abouttfdsaf/fadsfdas
    “displays 404 template properly” http://briannotbryan.com/?/about/tfdsaf/fadsfdas

    Page loads without being redirected
    “displays style-less website” http://briannotbryan.com/?/about/454

    I understand the only time this error will occur is when I exaggerate the URL segment structure with numbers or letters.

    When the error template is suppose to load, the site loads the page without any css styling. This will be easier to understand if you browse my site and type in misc number or letter URL’s. The problem seems very inconsistent and I can’t pin-point the issue.

    Any help would be greatly appreciated

    Thank You
    Brian

  • #2 / Oct 01, 2009 2:10am

    John Henry Donovan

    12339 posts

    Brian,

    Try sticking the no_results conditional in between your weblog tags

    {if no_results}
    {redirect="404"}
    {/if}

    Use this with the require_entry=“yes” parameter and see what happens.

    Do you have Strict URLs enabled in your Global Template preferences?

  • #3 / Oct 01, 2009 3:17am

    Brian Klepper

    5 posts

    Thanks John for the fast response!

    I was not running strict URL’s and I’m not sure I understand if this is part of the issue? I’m troubleshooting how this can effect the outcome… Any feedback regarding Strict URL’s and my 404 segment issues?

    Either way It looks like your suggestions are the root of my problems and I’m confident that they will resolve any previous issues I was having.

    I really didn’t know where to start but now I can make these changes and see if it improves any.

    Thank You very much for your support

  • #4 / Oct 01, 2009 3:25am

    John Henry Donovan

    12339 posts

    Brian,

    I will keep this thread open for you to see if those changes give you acceptable behaviour for your 404’s. Let us know how you get on.

  • #5 / Oct 01, 2009 2:13pm

    Brian Klepper

    5 posts

    John,

    I just implemented the redirect {if} statement that should keep the current page loaded without a redirect to a 404 page or empty page..

    {if no_results}{redirect="template_group/template"}{/if}

    I believe this should be a ‘Good Enough 😉’ fix for the time being. I think it will be ok to close this post

    Thank You &
    Best Regards

  • #6 / Oct 01, 2009 2:58pm

    Sue Crocker

    26054 posts

    Glad John was able to help. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases