View Single Post
Old 12-04-2011, 05:42 PM   PM User | #1
wrayimmediate
New to the CF scene

 
Join Date: Nov 2011
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
wrayimmediate is an unknown quantity at this point
force trailing slash

I'd like to force a trailing slash to all of my web pages. Here's my .htaccess - I already implemented something to remove .php - I found a solution to remove .php and force a trailing slash in the past, but silly me, I deleted the .htaccess and now every google result I read doesn't work for me. Please help

Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
RewriteBase /
wrayimmediate is offline   Reply With Quote