httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chad Day" <>
Subject Re: [users@httpd] help with URL redirection
Date Tue, 03 Sep 2002 19:30:54 GMT
No luck.. here's what I have in my vhost config:

RewriteEngine on
RewriteCond %{REQUEST_URI} ^/([^/]+)/?$
RewriteCond /usr/local/www/sites/ !-d
RewriteRule /.* [R,L]
RewriteEngine Off

In the error logs, I just get the standard page could not be found, no
indication it's even trying the rewrite rule.


It can be accomplished with mod_rewrite:

RewriteCond %{REQUEST_URI} ^/([^/]+)/?$
RewriteCond /documentroot/%1 !-d [NC]
RewriteRule /.* [R,L]

Your mileage may vary, but this should work ;)

Rodrigo Albani de Campos

Eat Healthy
Stay Fit
Die Anyway

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message