Home > Backend Development > PHP Tutorial > PHP可以写规则到htaccess中吗

PHP可以写规则到htaccess中吗

WBOY
Release: 2016-06-23 14:23:38
Original
737 people have browsed it

用PHP程序能向htaccess中写入规则吗。


回复讨论(解决方案)

当然可以!
只要你不拍 apache 累死

这个是没有问题的。

我们常用的就是隐藏index.php,还有其它比如url重写,301、302的转移等等。

说实话这样做不推荐,你可以看看手册 htaccess手册希望能帮到你

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