Hi All,
Here is a rewrite that works for extensionless urls and add the trailing slash. My 2 question are
1. will this also avoid duplicate content?
2. Also how do I test and see if there is any duplicate content?
Am I doing this correctly when all I want to do is write nice looking url's
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/$ $1.html
RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule (.*)$ /$1/ [R=301,L]
Thanks in advance for an help