Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Spammer linking to our IP address with his domain name


bird - 9:27 am on Nov 5, 2006 (gmt 0)



RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^www\.example\.com
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]

The first line is needed for very old browsers (or robots) who don't support virtual hosting, so they won't cause infinite redirects.


Thread source:: http://www.webmasterworld.com/apache/3146365.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com