mod rewrite question
Hello,
Need some help rewriting from one subdomain to another that takes in account potentially old bookmarks from the old subdomain. I have a basic redirect like:
RewriteCond %{HTTP_HOST} ^oldsub.domain\.com$ [NC]
RewriteRule ^/(.*)$ http://newsub.domain\.com/$1 [R=301,L]
Which works fine. But on the RewriteCond I'm trying to figure out a wildcard for users that may have bookmarked eg (oldsub.domain.com/forum/something.php?do=thread). So everything to the right of oldsub.domain.com/ erased, and redirected to the newsub.domain.com
Any ideas? Would be much appreciated..
Thanks,
Jim
|