17 May, 2006, Baram wrote in the 1st comment:
Votes: 0
I'm not sure how many other mud site owners really care about search engine ranks, but at Persistent Realms we do. One thing that most people don't seem to know is that most search engines, such as Google, view "persistentrealms.com" and "www.persistentrealms.com" as two different websites. This means any links to "persistentrealms.com" don't help the rank of "www.persistentrealms.com" We fixed this with a simple .htaccess addition:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.persistentrealms\.com [NC]
RewriteRule ^(.*)$ http://www.persistentrealms.com/$1 [L,R=301]
Redirect /htaccess-url-redirect.html http://www.persistentrealms.com


All that does is auto redirect anything going to our site, that doesn't start with "www." to "www.persistentrealms.com\<whatever you had here>" It uses a 301(permanently moved) error code so Google(and others) will apply any link weight to the "www." version. If you have other sub domains, such as "stuff.yoursite.com" then you need to change it to this:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www|stuff\.yoursite\.com [NC]
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301]
Redirect /htaccess-url-redirect.html http://www.persistentrealms.com


To check if it works, use this site:

http://www.webconfs.com/redirect-check.p...

Just type in "yoursite.com" and it will tell you if it's redirecting correctly to "www.yoursite.com"
Random Picks
0.0/1