[users@httpd] The logic behind URL rewriting

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

 





Hi List,

If anybody could tell here,
the logic behind an _expression_ matching .
I needed to tweak an apache _expression_ matching to suit my
subdomain's url rewriting .

<VirtualHost *>
ServerName aaa.domain.com
RedirectMatch (.*)\ .*$ https://www.domain.com/aaa$1
      ------x-------
This match is confirming any url like below,

=> bbb.domain.com
=> https://www.bbb.domain.com/index.jsp
=> www.bbb.domain.com
=>domain.com/bbb

rediected to as following ,

=>https://www.domain.com/bbb/index.jsp
=>https://www.domain.com/bbb/


Now i cann't figure out whats the function of $1 in the Redirectmatch here

Regards...


Sa njay Saha
Senior System Administrator
http://www.sanjaysaha.in

Cel=+919830223862


To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.
[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