1
有人可以帮我弄清楚如何重定向这样的网址。htaccess重定向URL与文件扩展名和尾部斜杠不斜杠
http://www.example.com/file.html/
到
http://www.example.com/file.html
我想这
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\.html/ $1\.html [L,R=301]
,但它重定向到
http://www.example.com/usr/www/users/user/folder/file.html
完美,谢谢! – 2012-07-16 22:09:06