RewriteRule Blind to Parent Directories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



RewriteRule is Blind to Parent Directories.

So if I have:

<Directory mywebsite.com/dir1/dir2/dir3/dir4/>
RewriteRule (.*) mywebsite.com/dir1/index?$1
</directory>


And the url entered is:
mywebsite.com/dir1/dir2/dir3/dir4/dir5/test

It will get redirected to:
mywebsite.com/dir1/index?dir5/test

Instead of:
mywebsite.com/dir1/index?dir1/dir2/dir3/dir4/dir5/test


Is there a way to use RewriteRule without being blind to parent directories?
I know that I could put this in <Directory mywebsite.com> 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
Wayne@xxxxxxxxxxxxxxx
http://www.WayneSallee.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux