1
我从/东西重定向到/某事/与设置在我的.htaccess文件:重定向到路径以“/”结尾
RewriteCond %{REQUEST_URI} !\.
RewriteRule ^(.*[^/])$ http://%{HTTP_HOST}/$1/ [L,R=301,QSA]
我想添加同样的事情页面从而结束上123.html
RewriteCond %{REQUEST_URI} [0-9]+\.html$
RewriteRule ^(.*[0-9]+\.html[^/])$ http://%{HTTP_HOST}/$1/ [L,R=301,QSA]
它没有工作......但!
RewriteCond %{REQUEST_URI} [0-9]+\.html$
RewriteRule ^(.*[0-9]+\.htm.*[^/])$ http://%{HTTP_HOST}/$1/ [L,R=301,QSA]
该变种完美!为什么apache不喜欢“l”?谁知道?
Apache的版本:2.4.9