Home > Backend Development > PHP Tutorial > 怎么判断iis或者Apache是否开启rewrite

怎么判断iis或者Apache是否开启rewrite

WBOY
Release: 2016-06-13 10:08:07
Original
1066 people have browsed it

如何判断iis或者Apache是否开启rewrite
用PHP程序判断服务器是否开启伪静态,怎么判断是否开启伪静态?

------解决方案--------------------
感觉 是否开启伪静态 是个伪命题

在apache下
查看是否载入mod_rewrite可以看phpinfo.
查看上述模块是否开启看.htaccess或者http.conf有没有RewriteEngine On

至于伪静态,还要看规则写得对不对。
所以真想看是否正在对应伪静态的话,需要参照规则来测试下url是否真的被映射到它应该去的路径上。

------解决方案--------------------
交给用户人工设置是否支持。

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