I have a link http://mysite.com/myname which shows the profile page.. But if i use multiple
slashes like http://mysite.com///myname , it also shows the page..
My htaccess code is :
RewriteCond %{REQUEST_URI} ^/(\w+)/?$ [NC]
RewriteRule ^ profile.php?username=%1 [L,QSA]
How to avoid this problem?
Can someone help me?
Not sure why do you really want to block multiple slashes but here is a way to do that:
This will give Forbidden error is a URI has multiple slashes at start like
///mynamewill generate: