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: [email protected]
" from the digest: [email protected]
For additional commands, e-mail: [email protected]