I have several URLs like this:
http://site.com/knowndir/../somedir/page.html
I need to redirect them to
http://site.com/somedir/page.html
Basically, I need to remove the knowndir/../
particle from the URL. I know the knowndir
part.
So far, I've tried with this rule:
RewriteRule knowndir\/\.\.\/(.*)$ http://site.com/$1 [R=301,L]
but without any luck.
What am I doing wrong?