apache域名重定向301跳转 .htaccess的写法
2016-01-20 15:07
651 查看
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^baidu.com$ [NC]
RewriteRule ^(.*)$ http://www.baidu.com/$1 [R=301,L]
RewriteBase /
RewriteCond %{HTTP_HOST} ^baidu.com$ [NC]
RewriteRule ^(.*)$ http://www.baidu.com/$1 [R=301,L]
相关文章推荐
- java.lang.Throwable: Child Error at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:271) Ca
- apache commons-io 用户手册
- apache mina:SimpleIoProcessorPool
- apache无法启动解决办法
- apache mina: IoFilterChain 过滤链
- org.apache.cxf.interceptor.Fault: Unmarshalling Error:
- 【手把手教你全文检索】Apache Lucene初探
- Linux---CentOS下编译安装Apache后只显示测试页面解决方法
- 手动将Apache注册为系统服务
- org.apache.commons.lang3.time之DateUtil
- PHP+Apache配置备忘
- 【Apache运维基础(4)】Apache的Rewrite攻略(1)
- apache2.4.18中启用h2c
- apache多站点配置
- Mac下PHP+MySQL+Apache2环境搭建
- 关于Apacheserver的訪问控制
- Ubuntu 完全卸载Apache2
- Apache JMeter开源压力测试/负载测试工具 2.12 官方最新版
- Apache Maven教程
- ubuntu下安装Apache+PHP+Mysql