Quantcast
Channel: ChinaUnix.net - 服务器应用
Viewing all articles
Browse latest Browse all 2948

关于Apache rewrite规则忽略下划线后缀的语法

$
0
0
作者: 柳渔舟 发表于: 2014-11-13 21:55:53 (GMT 8) 简介:[b]当访问http://localhost/abc/test 定位到http://localhost/abc/test.shtml 所以当前的规则如下: RewriteRule ^/abc/(.*)$ /website/abc/$1.shtml 但是如果在结尾加上一个下划线http://localhost/abc/test/ 就会404错误,

Viewing all articles
Browse latest Browse all 2948

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>