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.

SEO: 404 Headers

February 07, 2008 12:00pm

Subscribe [1]
  • #1 / Feb 07, 2008 12:00pm

    Lisa Wess

    20502 posts

    In any site, the designer or developer should make sure that the appropriate headers are sent with page requests. It is especially important to ensure that “Not Found” documents send out a proper 404 header.

    ExpressionEngine gives you many tools to assist with this, so how about we explore those here?

    Onwards!

  • #2 / Feb 07, 2008 9:53pm

    ms

    274 posts

    Thanks for this ... should check my sites 😉

  • #3 / Feb 08, 2008 11:22pm

    Bruce2005

    536 posts

    Good stuff Lisa.
    I did a wiki page a bit ago.
    And here’s a place to check 404 headers:

  • #4 / Feb 10, 2008 2:50pm

    Chris Williams

    102 posts

    I’m defaulting to a specific entry on the home page.

    {if segment_1 == ""}
            {exp:weblog:entries weblog="{my_weblog}" entry_id="28" disable="member_data|trackbacks" rdf="off"}
                <title>{title}</title>
                <meta name="description" content="{exp:html_strip}{summary}{/exp:html_strip}" />
                <meta name="keywords" content="{exp:html_strip}{keywords}{/exp:html_strip}" />
            {/exp:weblog:entries}
        {if:else}
            {exp:weblog:entries weblog="{my_weblog}" limit="1" disable="member_data|trackbacks" rdf="off"}
                <title>{title} - My Site Title</title>
                <meta name="description" content="{exp:html_strip}{summary}{/exp:html_strip}" />
                <meta name="keywords" content="{exp:html_strip}{keywords}{/exp:html_strip}" />
            {/exp:weblog:entries}
        {/if}

    When I put in the redirect code in the IF/ELSE portion, every page is a 404 error.

  • #5 / Feb 12, 2008 3:55pm

    Lisa Wess

    20502 posts

    Ah, sorry I missed this here Chris.  We’re discussing in this thread now.

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

ExpressionEngine News!

#eecms, #events, #releases