Home >Backend Development >PHP Tutorial >php 伪静态规则,很简单,来一个

php 伪静态规则,很简单,来一个

WBOY
WBOYOriginal
2016-06-23 14:26:561218browse

本帖最后由 XiAnTianYiChuanMei 于 2013-11-09 18:22:50 编辑

www.xx.com/index.php
http://www.xx.com/index.php?&page=2



重写后
www.xx.com/index.html
www.xx.com/2.html



Apache规则

回复讨论(解决方案)

RewriteRule ^index.html$ index.php
RewriteRule ^(\d+).html$ index.php?page=$1

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