URL rewrite rule not working the way I thought it should

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

 



Title: URL rewrite rule not working the way I thought it should

I have a URL:

http://test.webservices.illinois.edu/bob/calendar/list/7

I want to rewrite the URL internally so apache sees it as the following tomcat mod_jk URL:

http://test.webservices.illinois.edu/calendar/list/7

BUT I don't want to redirect.  I want apache to see the URL internally as the above.  So the URL in the persons browser still show "bob".

I used the below RewriteRule but it gives me a 404:

RewriteRule ^/bob/calendar/(.*) /calendar/$1 [L]


If I change the rule to the below it then works but the URL in the browser is changed to exclude "bob".  I believe the "R" is telling the browser to redirect:

RewriteRule ^/bob/calendar/(.*) /calendar/$1 [R,L]

Is there a different command other than [L] I should use to tell apache to rewrite the URL internally?  Or is my issue related to the fact that I am pointing to a URL that goes to mod_jk?

Thanks,

Lance Campbell
Software Architect/Project Manager/DBA
Web Services at Public Affairs
217.333.0382


[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