I'm struggling with the following issue.
I have one domain where I have a search application. What I wanted is anyone who clicks any of the search results should be redirected to another url which is located on another domain.
Basically anyone who clicks the url of the following type
http://search.com/sup/Emails/20080110/data/html/index-BE20060610303030.htm
should be redirected to the following url
http://newhost.com/cgi-bin/test.cgi?BE20060610303030
Below is what I tried
- Code: Select all
RewriteCond %{HTTP_HOST} ^search\.com\/sup\/Emails\/ [NC]
RewriteRule ^(.*)$ http://newhost.com/cgi-bin/test.cgi?$1 [NC,L]
Please let me know whats the right way to do this.
Regards
Sean