Forum Moderators: phranque
Example.
If the following was entered in the browser
[mysite.com...]
A 301 would occur to the following.
[mysite.com...]
Any help with the correct syntax would be much appreciated.
# Append "/" if requested URI contains no filetype and does not end in "/"
RewriteCond %{REQUEST_URI} !(\.¦/$)
RewriteRule (.+) http://www.example.com/$1/ [R=301,L]
But if you're sure that's what you want, then add "index.html" to the end of the substitution URL in the RewriteRule above.
For more information, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].
Jim