Home > Backend Development > PHP Tutorial > 伪静态做成目录结构

伪静态做成目录结构

WBOY
Release: 2016-06-23 14:10:07
Original
1201 people have browsed it

我使用的是win2003系统,做伪静态为目录结构,如:

/news.php  伪静态为    /news/


RewriteRule ^(.*)/news\/$   $1/news.php [L]

我这样写是不行的。


回复讨论(解决方案)

如果存在 news 目录,肯定是不行的

这个目录不存在,只是想把这个php地址,改成目录结构的

iis ? apache ? 还是...

用的是IIS

我本地装备的是apache,可以设置成功,但是服务器上的IIS就不行,不知咋整。

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