I'm trying to redirect an entire folder to one file but the "?" seems to be causing issues.
It redirects to the desired file,but with the variables. I want to obviously get rid of this. Any help?
3:53 am on Dec 13, 2007 (gmt 0)
The most common reason is that query strings pass through RewriteRules untouched.
Add a question mark to the end of your destination URL to clear the query string -- See the Apache RewriteRule documentation.
3:55 am on Dec 13, 2007 (gmt 0)
you probably need to do a permanent external redirect. it is hard to answer specifically and correctly without more information, but you should end up with something like this in general: RewriteRule (.*) http://www.example.com/$1? [R=301,L]
(after referring to the apache doc, it appears this may work for internal rewrites as well.)
4:10 am on Dec 13, 2007 (gmt 0)
I'm trying to redirect:
"and everything else in that directory to
on my other site.
Normally 301 works no problem on the server.
4:13 am on Dec 13, 2007 (gmt 0)
please post the relevant rewrite code and what results you saw.