Thanks,
I finally figured it out…
RewriteCond %{HTTP_HOST} ^olddomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.olddomain.com$
RewriteRule ^/?$ “http\:\/\/www\.newdomain\.com\/newfolder\/” [R=301,L]
I just needed to add slashes everywhere and this /? instead of this (.*)
If you have a second could you explain why?
Thanks!
t31os_ you seem to know your stuff, please help!!
I have a similar situation, but what if i need to redirect to both a new domain and folder. Also, notice the addition of the (www.)
Do I have to write a separate line for every unique page?
PS this is a wordpress site
examples:
INDEX:
http://olddomain.com —-> http://www.newdomain.com/newfolder/
PAGES:
http://olddomain.com/?p=528 —-> http://www.newdomain.com/newfolder/?p=528
http://olddomain.com/?p=482 —-> http://www.newdomain.com/newfolder/?p=482