Forum Moderators: phranque

Message Too Old, No Replies

RewriteRule with subdomain excluded

         

buzi

11:18 am on Jun 9, 2011 (gmt 0)

10+ Year Member



Hi,
i have a domain "tautktiv.com" with a subdomain "old.tautktiv.com" (he is under it in the folder structure)

i want to exclude "old.tautktiv.com" when i use the RewriteRule on the www.tautktiv.com domain.

some of the rules apply to folders,
have seen a solution for this but its not working for me.

this is what im using:

# Stop mod_rewrite processing if "old" subdomain requested
RewriteCond %{HTTP_HOST} ^old\.tautktiv.com
RewriteRule .* - [L]

#
# Skip next seven rules if "old" subdomain requested
RewriteCond %{HTTP_HOST} ^old\.tautktiv.com
RewriteRule .* - [S=2]

RewriteRule ^list/123/(.*)$ http://www.tautktiv.com/ct/bar1/%D7%91%D7%A8%D7%99%D7%9D-%D7%91%D7%A4%D7%9C%D7%95%D7%A8%D7%A0%D7%98%D7%99%D7%9F/$1 [R=301,L]


but when i click for example
[old.tautktiv.com...]
it goes to [tautktiv.com...]

can someone help ?
Thanks