httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chad Day" <c...@atpco.com>
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/online-leagues.com/htdocs/calendar/%1 !-d
[NC]
RewriteRule /.* http://calendar.online-leagues.com/view.php?ID=%1 [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.

Quote:
------

It can be accomplished with mod_rewrite:

RewriteCond %{REQUEST_URI} ^/([^/]+)/?$
RewriteCond /documentroot/%1 !-d [NC]
RewriteRule /.* http://calendar.domain.com/view.php?ID=%1 [R,L]


Your mileage may vary, but this should work ;)

--
Rodrigo Albani de Campos
http://geekbunker.org/rodrigo/?sig

Eat Healthy
Stay Fit
Die Anyway


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message