httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wayne Sallee <>
Subject [users@httpd] RewriteRule Blind to Parent Directories
Date Fri, 07 Feb 2020 17:48:27 GMT
RewriteRule is Blind to Parent Directories.

So if I have:

RewriteRule (.*)$1

And the url entered is:

It will get redirected to:

Instead of:

Is there a way to use RewriteRule without being blind to parent directories?
I know that I could put this in <Directory> to make it work.
Can {REQUEST_URI} be fed into RewriteRule to use that as data to be processed?
Like filtering {REQUEST_URI} through (.*)(/dir3)(.*) to redirect to $1$3

Wayne Sallee

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message