Hi,
I have 2 problems with mod_rewrite:
1. I need to substitute "//" with "/" at the end of the address.
2. I want to forbid going to file "index.php". This file exists, but users can't go to this file.
Can anybody help me?
Thanks.
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^index\.php$ - [F,L]
RewriteCond %{THE_REQUEST} \ /*(/.+)//+([^\ ]*)\ [NC]
RewriteRule .* %1/%2 [R=301,L]
Return to Friendly URLs with Mod_Rewrite
Users browsing this forum: No registered users and 7 guests