I have the following in my.htaccessfile, and it removes the.phpof the URL for 'friendly urls'.
How do I modify it so that it puts a slash at the end?Code:RewriteEngine on RewriteCond %{REQUEST_URI} !(\.[^./]+)$ RewriteCond %{REQUEST_fileNAME} !-d RewriteCond %{REQUEST_fileNAME} !-f RewriteRule (.*) /$1.php [L] RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^.]+\.)+php\ HTTP RewriteRule ^(.+)\.php$ /$1 [R=301,L]
Here's an example:
Original:/about.php
Rewritten:/about/
Thanks for you help!
// X96 \\



Reply With Quote

Bookmarks