I have htaccess in my PHP website. I want to work url with or without trailing slash.
Below code works only with the trailing slash.
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^(.*)/$ $1.php [NC,L]
e.g. www.mydomain.com/index/ --Works
www.mydomain.com/index --Not Work
If anybody know how can I get this without trailing slash?
Thanks