.htaccess rewrite的编写

WBOY
Release: 2016-06-06 20:21:42
Original
1211 people have browsed it

我地址重写的需求是这样的

/admin/aaa/bbb -> /admin.php/aaa/bbb
/xxx/yyy -> /index.php/xxx/yyy

规则应该是从上到下匹配的 第二条规则中的xxx应该不为admin

那么 这两行规则应该怎么写

我试着写过几个,都报500的错误

回复内容:

我地址重写的需求是这样的

/admin/aaa/bbb -> /admin.php/aaa/bbb
/xxx/yyy -> /index.php/xxx/yyy

规则应该是从上到下匹配的 第二条规则中的xxx应该不为admin

那么 这两行规则应该怎么写

我试着写过几个,都报500的错误

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!