mod rewrite incomprehension

New to mod_rewrite? This is a good place to start.

mod rewrite incomprehension

Postby elobilo » Wed Oct 13, 2004 1:00 am


I have to look at a problem we have with apache rewriting but I don't know anything about mod rewrite. Please could someone confirm or elaborate my interpinterpret what the rewrite condition and rule below does:

rewriteCond %{HTTP_COOKIE} !^.*SESSIONID=.*$

rewriteRule ^/HTTP_UNAUTHORIZED\.html$ http://localhost/Launch.jsp [P]

My interpretation is that if a cookie does not contains *SESSIONID* then 'HTTP_UNAUTHORIZED.html' (if in url) will be substituted with 'http://localhost/Launch.jsp' and this will be forced.


Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 12 guests