httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [users@httpd] Unwanted URL ending with mod_rewrite
Date Wed, 10 Jun 2009 08:04:44 GMT

I'm using mod_rewrite method for clean URLs.
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.+)$ index.php?page=$1 [QSA]

RewriteCond %{REQUEST_URI} d,article_main$

I get URL like this:,article_main/

Is it possible to strip that ending /d,article_main/
from URL with mod_rewrite or better to use PHP?

Thank you in advance,


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