PHP伪静态IIS

有些主机赢得IIS不支持.htaccess文件,我不在这里指的地方用APMserv服务器在本地的话可以使用.htaccess文件,使用APMserv服务器环境配置可以看到PHP伪静态伪静态(mod_rewrite重写URL重写)这篇文章,讲的很详细。

在这里我们主要讲解httpd.ini废话。

例如: /的index.php
我们希望他去,它直接与 / index.html
/ newxx。php = 10 { newxx.php是新闻}详细页面
我们把他变成了一个伪静态/ new-10.html
实施过程如下:的httpd.ini文件

{ isapi_rewrite }
# 3600 = 1小时
# cacheclockrate 3600
RepeatLimit 32
#保护和httpd.parse.errors httpd.ini文件
从#通过HTTP访问
关键词^ / httpd( INI | 。解析错误。)。{,I,o }
RewriteRule / /的index.php index.html
以上RewriteRule /新实例({ } + 0-9)。HTML $ / newxx 。PHP uid = 1美元表明RewriteRule / /的index.php文件是转换的index.php index.html
RewriteRule /新({ } + 0-9)。HTML $ / newxx 。PHP uid = 1美元转换为new-10 {,}一个值为ID = 10的HTML。

这很简单,基本上支持这种伪静态通用主机空间商!