I just need to know how to redirect a single url from /tv/ To Tv.domain.com Please let me know how I can do this Thanks in advance
RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://www.domain.com/tv [NC] RewriteRule /* http://Tv.domain.com [R,L] Code (markup): Regards
The more I look at this rewrite rule the more it puzzles me. Translating it into English: If the last page the visitor was on was not www.domain.com/tv and the current page contains any number of slashes, redirect them to tv.domain.com But what you wanted was: If the current page is domain.com/tv then redirect them to tv.domain.com. As it stands, the rewrite rule will redirect every visitor you get, even if they are not looking at /tv. I would use: RewriteRule ^tv/ http://tv.domain.com Code (markup): and forget about the RewriteCond altogether.