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
2022-02-14 01:47:15
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