Quote:
Originally Posted by darksoul
lame.
at least the 3rd time you got it better than your previous failed attempts.
The 301 redirect is meaningless unless its redirecting bot traffic.
|
Quoth apache manual:
Quote:
DESCRIPTION: In some cases the same web site is accessible by different addresses, like domain.com, www.domain.com, www.domain2.com and we want to redirect it to one address.
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R,L]
|
fuck man, sorry to use code you don't understand.
cram it.