eleven0 Posted March 27, 2008 Share Posted March 27, 2008 I found some stuff on some other sites, but didn't work. Also i have this to remove .php extension RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php Now, I want to add slashes at the end. Can someone give me the right code? Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted March 28, 2008 Share Posted March 28, 2008 Use: RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*)$ http://your-site.com/$1 [R=301,L] Make sure the above code is before: RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.