php检测iis环境是否支持htaccess

php检测iis环境是否支持htaccess的方法。

modrewrite.php
<?php echo "mod_rewrite works"; ?>

open_me.php
<?php echo "mod_rewrite does not work"; ?>

RewriteEngine on
RewriteRule ^open_me.php$ modrewrite.php

posted @ 2014-02-19 06:44  un123  阅读(273)  评论(0编辑  收藏  举报