SEO: 404 Headers
Posted: 07 February 2008 04:58 PM   [ Ignore ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  31069
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 08:53 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  756
Joined  03-16-2002

Thanks for this ... should check my sites wink

 Signature 

Markus Stolpmann • Expression Engine 1.6.4
Current project: kamaco.info - (german) website for Austrian publication coach K. Matejcek

Profile
 
 
Posted: 08 February 2008 10:22 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
RankRankRank
Total Posts:  928
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 01:50 PM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  114
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 02:55 PM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  31069
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 10:33 AM
Total Registered Members: 60719 Total Logged-in Users: 23
Total Topics: 73172 Total Anonymous Users: 16
Total Replies: 394653 Total Guests: 512
Total Posts: 467825    
Members ( View Memberlist )