in reply to mod_rewrite woes
If you'd rather it be transparent to the user (that is, they don't see the index.cgi?rm=foo), then change the [L] to [P].RewriteEngine on RewriteBase /subDir/ # only redirect if the file requested isn't index.cgi # capture anything else and redirect it to index.cgi RewriteCond %{REQUEST_FILENAME} !^index.cgi RewriteRule ^(.+)/?$ index.cgi?rm=$1 [L]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: mod_rewrite woes
by geektron (Curate) on Jan 30, 2004 at 01:04 UTC | |
by The Mad Hatter (Priest) on Jan 30, 2004 at 01:11 UTC | |
by geektron (Curate) on Jan 30, 2004 at 02:08 UTC |