Home  >  Article  >  Backend Development  >  如何根据访问地址选择不同的入口

如何根据访问地址选择不同的入口

WBOY
WBOYOriginal
2016-06-06 20:24:021622browse

网站本身已经有重写规则:RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L],
我想根据这样地址表达式 www.xxx.com/zh-cn/oop_555(数字)/* 选择另外一个入口 xxx.php
如何添加重写规则?
确实试过多次未果,各大神帮个忙

回复内容:

网站本身已经有重写规则:RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L],
我想根据这样地址表达式 www.xxx.com/zh-cn/oop_555(数字)/* 选择另外一个入口 xxx.php
如何添加重写规则?
确实试过多次未果,各大神帮个忙

可以使用 绑定模型

Statement:
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