View Single Post
Old 10-18-2006, 05:32 AM  
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Quote:
Originally Posted by darksoul View Post
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.
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote