So I've got this little issue I'm hoping can be solved by someone here. I'm trying to redirect anything like http://xyz.com/?/foo/ to http://xyz.com/foo I can't figure out how to write the redirectmatch 301 rule to eliminate the /?/ It's been a hopeless endeavor. Any help would be greatly appreciated. Thanks. PK
I did some research and it turns out that the Redirect rule won't work. (Didn't even bother trying it). It's the fact that the ? is a special query string character so the only way to fix it is to use RewriteCond. I'm going to start playing with it today. Thanks for the suggestion though.
How did that /?/ come there? example.com and example.com/?/ will return the home page. example.com/?/anything.html will also return the home page.