httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd Nine" <>
Subject [users@httpd] mod_rewrite base url
Date Sun, 06 Jan 2008 02:13:21 GMT
Hi all,
  I'm running Apache with mod_jk, and several tomcat back end servers.  I
have a default application I would like to use, but I'm not sure how to get
mod_rewrite to work to redirect the client to the default server.  What I
would like is something like the following

user enters -->
mod_rewrite redirects to -->

I have the following, but its not working.  I'm basically trying to find an
empty URI then redirect, but it doesn't seem to work.  I just get the empty
directory indexing.  Could anyone give me a hand?

RewriteEngine On

#Match all request URIs that are empty
RewriteCond %{REQUEST_URI} ^$
RewriteRule (.*) http://%{HTTP_HOST}/insight/


View raw message