.htaccess tweak needed
I have the following rewrite rule in my .htaccess
file:
RewriteRule ^books$ /my/directory/pro/books [NC,L]
It works fine as long as the user does not add a trailing slash, e.g.
mysite.com/books // works
mysite开发者_如何学编程.com/books/ // doesn't work
How can it be modified to work with or without the trailing slash?
RewriteRule ^books/?$ /my/directory/pro/books [NC,L]
精彩评论