SEO: 404 Headers
Posted: 07 February 2008 03:58 PM   [ Ignore ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32909
Joined  05-14-2004

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!

 Signature 
Profile
MSG
 
 
Posted: 07 February 2008 07:53 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  768
Joined  03-16-2002

Thanks for this ... should check my sites wink

Profile
 
 
Posted: 08 February 2008 09:22 PM   [ Ignore ]   [ # 2 ]  
Lab Technician
RankRankRankRank
Total Posts:  1021
Joined  03-25-2005

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

 Signature 

BKDesign Solutions - Learn XHTML and use   Web Standards to build accessible websites that validate

Profile
 
 
Posted: 10 February 2008 12:50 PM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  118
Joined  03-30-2006

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.

 Signature 

—chris
http://www.martinilab.com

Profile
 
 
Posted: 12 February 2008 01:55 PM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32909
Joined  05-14-2004

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

 Signature 
Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65019 Total Logged-in Users: 51
Total Topics: 82106 Total Anonymous Users: 21
Total Replies: 441243 Total Guests: 237
Total Posts: 523349    
Members ( View Memberlist )