关于 thinkphp 伪静态问题。

WBOY
Release: 2016-06-23 13:08:06
Original
1043 people have browsed it

关于 thinkphp 伪静态问题。

想知道把 http://localhost/index.php/Home/Index/webpage/page/1

伪静态为 http://localhost/page_1.html

该如何实现?谢谢。


回复讨论(解决方案)

thinkphp的路由模块没有用过 都是用服务器软件的rewrite实现的
1.你是什么服务器?搜索nginx/apache/iis rewrite 学习一下如何重写url
2.学习正则表达式
都懂了这个问题就解决了

经过学习已经找到答案了,真是太方便了这个 thinkphp,喜欢。。。

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!