I want to redirect a certain foler back to root folder.
For example:
http://www.domain.com/folder/file.php?arguments=etc
redirects (301) to
http://www.domain.com/file.php?arguments=etc
I tried
Rewriterule ^/folder/(.*)$ $1 [R=301,L]
but when I try http://www.domain.com/folder/file.php?arguments=etc
it becomes
http://www.domain.com/home/username/...?arguments=etc
which is really WEIRD!
How do I fix this?
Also, I have multiple domain names, so it must work with multiple domain names.
I tried lots of combinations, and they do not work, sometimes I get 500 error.
Help.. thanks 
|