Hi guys,
Can anybody help me on .htaccess rewrite rule to add a trailing slash
Currently links on my server are in below format
http://www.domainname.com/filename.html
I want to allow user to check this page with url
http://www.domainname.com/filename
Please help.
Thanks in advance.
Help needed on .htaccess rewrite rule to add a trailing slas
Moderator: General Moderators
Re: Help needed on .htaccess rewrite rule to add a trailing slas
Code: Select all
Options +FollowSymLinks -Multiviews -Indexes
RewriteEngine on
RewriteBase /websites/test/website
RewriteRule ^([a-z]+)/?$ $1.htmlTo allow numbers as well use
Code: Select all
RewriteRule ^([a-z0-9]+)/?$ $1.htmlThis page is the ultimate resource for .htaccess help
http://perishablepress.com/press/2006/0 ... ss-tricks/