- This topic is empty.
-
AuthorPosts
-
December 29, 2005 at 7:17 pm #679471
Anonymous
InactiveI think this is the code you need:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^freerolls.drawdead.com$ [NC]
RewriteRule ^(.*)$ http://freerolls.drawdead.com/$1 [R=301,L]
This should do the trick for the first one.
Anyone typing freerols.drawdead.com will be redirected to http://freerolls.drawdead.com
For the others I don’t know exactly how to handle.
December 29, 2005 at 9:30 pm #679478Anonymous
InactiveActually, won’t the user’s browser assume http:// if it is left off? The browser can’t send a request to the server without knowing a protocol.
You’ll still need to mod_rewrite for the others though, and I”ll leave that to someone who knows what they’re talking about. :satisfied
December 29, 2005 at 9:41 pm #679480Anonymous
Inactivewell the best place that can help you is this one:
http://forum.modrewrite.com/December 30, 2005 at 3:31 pm #679528Anonymous
Inactivethanks, ill check it out!
January 5, 2006 at 4:29 pm #679926Anonymous
InactiveWhat is the benefit of doing this?
January 5, 2006 at 5:16 pm #679937Anonymous
InactiveNo duplicate content penalty for one.
January 5, 2006 at 10:09 pm #679958Anonymous
InactiveYes as a way of protection, everyone should redirect traffic from yoursite.com to http://www.yoursite.com.
It’s easy to do. Just use a .htaccess file on your webroot (usually the public_html folder), with the following code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yoursite.com$ [NC]
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=301,L] -
AuthorPosts