Problem with questionmark at end of URL
-
Hello!
I use your plugin to secure quite a few websites. On all websites I have the same problem: URL’s ending with a questionmark result in a ugly 403 Forbidden.
So:
domain.com/?
domain.com/thisfileisnothere.php?
domain.com/someworkingurl/?
All result in 403’sWhile:
domain.com/
domain.com/thisfileisnothere.php
domain.com/someworkingurl/
Result in the website, a (decent) 404 and a subpage.Why is the questionmark bad? Why can’t it just redirect to the homepage instead of leaving the visitor on a ugly 403 page?
It seems to go wrong on the line:
RewriteCond %{THE_REQUEST} \?\ HTTP/ [NC,OR]I have disabled all other plugins and the issue persisted. I have put back the default .htaccess (with other plugins activated) and the issue was gone.
Daan
- The topic ‘Problem with questionmark at end of URL’ is closed to new replies.