httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <rob...@profundis.nu>
Subject Re: [users@httpd] Help with mod_rewrite
Date Wed, 26 May 2004 13:11:17 GMT
Johan Svedberg wrote:
> > RewriteEngine On
> > RewriteRule ^/weblog/archives/index.php$ - [L]
> > RewriteRule ^/weblog/archives/?([^0-9]+)/ yourreplacement
> 
> That does indeed work. Everything works well now, except for one thing.
> When I try to access /weblog/archives/ the second rule kicks in.

You might want to try:
    RewriteRule ^/weblog/archives/(index.php)?$ - [L]

Regards,
Robert Andersson

---------------------------------------------------------------------
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