Apache配置
URL重写:
httpd.conf搜索WWW,在<Directory></Directory>标签内添加:
RewriteEngine on:开启重写模块
RewriteRule:重写规则
RewriteRule ^.*$ http://www.baidu.com 将访问本机域名的所有用户,跳转至百度F
RewriteRule ^(.+)html$ $1php:将*****html重写为*****php伪静态
Apache配置
URL重写:
httpd.conf搜索WWW,在<Directory></Directory>标签内添加:
RewriteEngine on:开启重写模块
RewriteRule:重写规则
RewriteRule ^.*$ http://www.baidu.com 将访问本机域名的所有用户,跳转至百度F
RewriteRule ^(.+)html$ $1php:将*****html重写为*****php伪静态
发表评论