Currently my web site will try to find directory by going backwards through folders using URI constructed this way:
http://dummy.domain.com/home/../../section/
I would like to prevent this using mod_rewrite
, but I wasn't able to write a regular expression which will be able to remove all ../
from URI. The best try was:
RewriteRule ^(.*)([\.]{2}[\/]{1})(.*)$ $1$3 [L]
but rule above will only remove one occurrence of ../