<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>Dev411 Blog: Category apache</title>
  <subtitle type="html">John Wang on Technology</subtitle>
  <id>tag:www.dev411.com,2005:Typo</id>
  <generator uri="http://www.typosphere.org" version="4.0">Typo</generator>
  <link href="http://www.dev411.com/blog/xml/atom/category/feed.xml" rel="self" type="application/atom+xml"/>
  <link href="http://www.dev411.com/blog/tag/apache" rel="alternate" type="text/html"/>
  <updated>2007-06-16T12:59:10-05:00</updated>
  <entry>
    <author>
      <name>John Wang</name>
    </author>
    <id>urn:uuid:5988f8615af12f0001577cb742c07cdd</id>
    <published>2006-07-20T22:25:00-05:00</published>
    <updated>2007-06-16T12:59:10-05:00</updated>
    <title type="html">SEO - to www or not</title>
    <link href="http://www.dev411.com/blog/2006/07/20/seo-to-www-or-not" rel="alternate" type="text/html"/>
    <category term="typo" scheme="http://www.dev411.com/blog/tag/typo" label="typo"/>
    <category term="apache" scheme="http://www.dev411.com/blog/tag/apache" label="apache"/>
    <category term="seo" scheme="http://www.dev411.com/blog/tag/seo" label="seo"/>
    <summary type="html">&lt;p&gt;Many popular sites in the Typo community have chosen not to include &lt;span class="fix"&gt;www.&lt;/span&gt; in their domain name. I was curious about this because it isn't very common in websites overall. Then I ran across a &lt;a href="http://typoforums.org/index.php/topic,30.0.html"&gt;Typo Forums thread&lt;/a&gt; saying dropping the &lt;span class="fix"&gt;www.&lt;/span&gt; with a 301 redirect would improve SEO. I wonder if this thread or something similar in the Typo community influenced many of the sites.&lt;/p&gt;

&lt;p&gt;Doing a little more searching I found a &lt;a href="http://forums.digitalpoint.com/showthread.php?t=88514"&gt;Digital Point thread&lt;/a&gt; where the general concensus is that having www. or not doesn't really matter but you should pick one and do a 301 redirect from one to the other so they don't appear as different sites to search engines. I also checked some high traffic sites in Google to see how they are indexed, e.g. searching on [site:myspace.com] shows MySpace's domain indexed as www.myspace.com. Since dev411.com was indexed with www. already and responding to both dev411.com and www.dev411.com, I simply added a 301 redirect to www.dev411.com.&lt;/p&gt;

&lt;p&gt;The following from the Digital Point thread adds a 301 redirect for Apache:&lt;/p&gt;

&lt;pre&gt;RewriteEngine on 
RewriteCond %{HTTP_HOST} ^yoursite.com [NC]
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301]&lt;/pre&gt;

&lt;p&gt;However, it seems that many sites do not do a redirect and serve content on both www.domain.com and domain.com. MySpace and Ruby on Rails (rubyonrails.org) are two such sites. Although one is preferred, both are responded to with HTTP 200 status. Perhaps the SEO issue isn't as important of a consideration for those sites.&lt;/p&gt;

&lt;p&gt;The other consideration when using cookies.  If you wish your users to access your website with no subdomain as well as multiple other subdomains, you will need cookies that can work across both uri styles. To set a cookie that will work without a subdomain, set without the Domain attribute. To set a cookie that will work with multiple subdomains set a cookie with a domain that starts with a dot. To cover both bases, i.e. if you wanted to set session cookies that work across different uri styles, set both cookies with the same name.&lt;/p&gt;

&lt;p&gt;Edited 16 June 2007 to discuss non-redirecting sites and cookies.&lt;/p&gt;</summary>
    <content type="html">&lt;p&gt;Many popular sites in the Typo community have chosen not to include &lt;span class="fix"&gt;www.&lt;/span&gt; in their domain name. I was curious about this because it isn't very common in websites overall. Then I ran across a &lt;a href="http://typoforums.org/index.php/topic,30.0.html"&gt;Typo Forums thread&lt;/a&gt; saying dropping the &lt;span class="fix"&gt;www.&lt;/span&gt; with a 301 redirect would improve SEO. I wonder if this thread or something similar in the Typo community influenced many of the sites.&lt;/p&gt;

&lt;p&gt;Doing a little more searching I found a &lt;a href="http://forums.digitalpoint.com/showthread.php?t=88514"&gt;Digital Point thread&lt;/a&gt; where the general concensus is that having www. or not doesn't really matter but you should pick one and do a 301 redirect from one to the other so they don't appear as different sites to search engines. I also checked some high traffic sites in Google to see how they are indexed, e.g. searching on [site:myspace.com] shows MySpace's domain indexed as www.myspace.com. Since dev411.com was indexed with www. already and responding to both dev411.com and www.dev411.com, I simply added a 301 redirect to www.dev411.com.&lt;/p&gt;

&lt;p&gt;The following from the Digital Point thread adds a 301 redirect for Apache:&lt;/p&gt;

&lt;pre&gt;RewriteEngine on 
RewriteCond %{HTTP_HOST} ^yoursite.com [NC]
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301]&lt;/pre&gt;

&lt;p&gt;However, it seems that many sites do not do a redirect and serve content on both www.domain.com and domain.com. MySpace and Ruby on Rails (rubyonrails.org) are two such sites. Although one is preferred, both are responded to with HTTP 200 status. Perhaps the SEO issue isn't as important of a consideration for those sites.&lt;/p&gt;

&lt;p&gt;The other consideration when using cookies.  If you wish your users to access your website with no subdomain as well as multiple other subdomains, you will need cookies that can work across both uri styles. To set a cookie that will work without a subdomain, set without the Domain attribute. To set a cookie that will work with multiple subdomains set a cookie with a domain that starts with a dot. To cover both bases, i.e. if you wanted to set session cookies that work across different uri styles, set both cookies with the same name.&lt;/p&gt;

&lt;p&gt;Edited 16 June 2007 to discuss non-redirecting sites and cookies.&lt;/p&gt;

</content>
  </entry>
  <entry>
    <author>
      <name>John Wang</name>
    </author>
    <id>urn:uuid:281a18183a90778cd4aa25d30ebfdd1c</id>
    <published>2006-06-21T17:04:00-05:00</published>
    <updated>2007-06-16T12:30:22-05:00</updated>
    <title type="html">Birth of a Typo Blog</title>
    <link href="http://www.dev411.com/blog/2006/06/21/birth-of-a-typo-blog" rel="alternate" type="text/html"/>
    <category term="mysql" scheme="http://www.dev411.com/blog/tag/mysql" label="mysql"/>
    <category term="typo" scheme="http://www.dev411.com/blog/tag/typo" label="typo"/>
    <category term="apache" scheme="http://www.dev411.com/blog/tag/apache" label="apache"/>
    <category term="lighttpd" scheme="http://www.dev411.com/blog/tag/lighttpd" label="lighttpd"/>
    <summary type="html">&lt;p&gt;I'm giving Typo a shot after hearing some good things about it and having performance problems at a hosted blog service. It's been pretty good so far. Let's see how it runs in action.&lt;/p&gt;

&lt;p&gt;I'm currently using the Lucid theme. So far I've played with Azure (the default), Lucid and Phokus. The default font size seems smaller than normal on other sites. Let me know if it's too small or there are other issues.&lt;/p&gt;

&lt;p&gt;Up until now, &lt;a href="http://www.dev411.com/"&gt;my wiki&lt;/a&gt; has been the only app at this domain. I'm leaning towards putting commentary, questions, short summaries and the like in the blog while the wiki would still contain reference type information. To that end, I put up some &lt;a href="http://www.dev411.com/wiki/Installing_Typo:_MySQL%2C_Apache%2C_lighttpd_and_FastCGI"&gt;detailed Typo install instructions covering MySQL, Apache, lighttpd and FastCGI&lt;/a&gt; on the wiki.  Right now it just covers installation as I'm just getting into customizing the template. Let me know what you think.&lt;/p&gt;</summary>
    <content type="html">&lt;p&gt;I'm giving Typo a shot after hearing some good things about it and having performance problems at a hosted blog service. It's been pretty good so far. Let's see how it runs in action.&lt;/p&gt;

&lt;p&gt;I'm currently using the Lucid theme. So far I've played with Azure (the default), Lucid and Phokus. The default font size seems smaller than normal on other sites. Let me know if it's too small or there are other issues.&lt;/p&gt;

&lt;p&gt;Up until now, &lt;a href="http://www.dev411.com/"&gt;my wiki&lt;/a&gt; has been the only app at this domain. I'm leaning towards putting commentary, questions, short summaries and the like in the blog while the wiki would still contain reference type information. To that end, I put up some &lt;a href="http://www.dev411.com/wiki/Installing_Typo:_MySQL%2C_Apache%2C_lighttpd_and_FastCGI"&gt;detailed Typo install instructions covering MySQL, Apache, lighttpd and FastCGI&lt;/a&gt; on the wiki.  Right now it just covers installation as I'm just getting into customizing the template. Let me know what you think.&lt;/p&gt;

</content>
  </entry>
</feed>

