I need a little help, well confirmation actually, that my .htaccess is correct here. Id like to do the following: site.com to www.site.com except sub.site.com except sub1.site.com Would it read, Options +FollowSymlinks RewriteEngine on RewriteCond %{HTTP_HOST} !^www|sub|sub1\.site\.com RewriteRule ^(.*)$ http://www.site.com/$1 [R=permanent,L] Code (markup): Thanks.
RewriteEngine on RewriteCond %{HTTP_HOST} ^DOMAIN\.com [NC] RewriteRule ^(.*)$ http://www.DOMAIN.com/$1 [R=301,L] at www.domain.com/.htaccess
Dont care about sub.site.com and sub1.site.com, they are not connected to site.co or www.site.com. They are indipendent sites.
Sorry for your late reply, the code you provided is working flawlessly. Please send your paypal email to me via PM, so I can send you $5. Also, rep added to the both of you. Thanks.