Home >Backend Development >PHP Tutorial > 伪静态有关问题

伪静态有关问题

WBOY
WBOYOriginal
2016-06-13 13:43:36873browse

伪静态问题
我要将所有以.html 结尾的请求都搞到/index.php
要怎么写呢

------解决方案--------------------
RewriteEngine On 
RewriteRule ^.*\.html$ index.php [NC,L]

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