27 1 月, 2014
RewriteRule中的正则表达式是否加上^的区别
例子一 RewriteRule /news/(/d+)/.html /news/.php/?id=$1 [N,L] 不仅匹配 http://localhost/news/1.html 也会匹配 http://localhost/test/news/1.html 因此应当加上^ R […]
关注网站技术,一个特立独行的程序员
例子一 RewriteRule /news/(/d+)/.html /news/.php/?id=$1 [N,L] 不仅匹配 http://localhost/news/1.html 也会匹配 http://localhost/test/news/1.html 因此应当加上^ R […]