[opencms-dev] opencms URL rewrite

Rene Hinojosa r_hinojosa at cityofsouthfield.com
Tue Oct 7 17:26:01 CEST 2003


Nevermind it didn't work. Sorry 'bout the posting.

On Tuesday, October 7, 2003, at 10:37 AM, Rene Hinojosa wrote:

> Greeting All,
>
> Just wanted to note a change I had to make to the original rewrite 
> code I posted last week. I found a problem with the original when you 
> are passing parameters into jsp pages that are included in other jsp 
> pages. The correctly working code is as follows:
>
> <IfModule mod_rewrite.c>
> RewriteEngine on
> RewriteLog "/var/log/httpd/rewrite.log"
> RewriteLogLevel 1
>
> #Redirect root URL entry through proxy. URL
> RewriteRule ^/$ /opencms/opencms/internet/ [P]
>
> #Redirect all entries to /internet/  I have a directory that I want as 
> the root of the site
> RewriteRule ^/opencms/opencms/internet/?(.*)$ /internet/$1 [P,QSA]  
> #This was originally R but changed to P(roxy), Q(uery) S(tring) 
> A(ttached)
>
> #Redirect admin login properly. Can use RewriteCond to make login 
> secure by use host variable or whatever.
> RewriteRule ^/system/login$ /opencms/opencms/system/login [R]
>
> #Redirect all /internet/ page through tomcat
> RewriteRule ^/internet/(.*)$ http://<<insert your tomcat 
> ip>>:8080/opencms/opencms/internet/$1 [P,QSA]
>
> </IfModule>
>
>
>
> Rene
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please 
> visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>




More information about the opencms-dev mailing list