Can anyone provide me with a code to rewrite all URLs with a trailing slash and replace them with the URL without the slash? Thanks, Mark
RewriteCond %{REQUEST_FILENAME}.php -f RewriteCond %{REQUEST_URI} !/$ RewriteRule (.*) $1\.php [L] RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)/$ /$1 [R=301,L]