httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kestuti...@yahoo.com
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:
http://www.example.com/news/131/52/article-name/d,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,
kestutis



      

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