服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. 301 redirect apache 2.2 httpd mod rewrite
  3. Apache – 如何忽略301redirect中的path和参数
Intereting Posts
Squid:请求或回复太大 GNOME系统监视器保存时间线 OS Xnetworking帐户 – 禁用login,但仍允许连接到服务器? 如何使用apache设置AWS EC2 需要将WinXP桌面转换为基于WinXP的服务器,build议? (更多详情里面) 快递imap-ssl和多个域名 在一个自写的tcp服务器上使用哪个端口 如何在AWS负载均衡器后面运行Parse Live Query Server(Web套接字)? 如何在具有多个WAN IP的OS X Lion Server中指定使用哪个IP地址进行出站stream量? 有没有用于VMware融合的SDK? HP ProLiant DL360 G6 RAID会重build风扇噪音 Linux权限不受尊重 降级/取代root用户? 引导期间,HP SmartArray磁盘在托架2中没有响应 如何让所有的Apache日志到控制台

Apache – 如何忽略301redirect中的path和参数

假设我希望所有对example.com的请求都redirect到abc.com。

如何将所有内容redirect到abc.com的根目录并且不包含example.com中包含的任何path或参数?

例如

example.com/index.py?var=1 should go to abc.com 

我在我的.htaccess中试过

  • 如何让Apache 301redirect使用光油?
  • 使用ldirectord / LVS将HTTPredirect到HTTPS
  • 带有ssl的Nginx总是返回301
  • IIS 8 URL在站点级redirect
  • 西里尔文URL的HTTPredirect:这个例子没有被编码的​​URL。 为什么?
 RedirectPermanent / http://www.abc.com 

但它是这样做的:

 example.com/index.py?var=1 goes to abc.com/index.py?var=1 

  • 分派器上的Apache重写规则
  • 如何检查是正在使用规范化的域名? Apache 301redirect不保留referrer
  • 301使用IIS从mydomain.co.ukredirect到www.mydomain.co.uk
  • 除了一个文件,Apache 301redirect
  • 有效的301redirect到Apache(www到非www,反之亦然)?

您可以使用以下redirect:

 RedirectMatch permanent . http://www.abc.com 
  • 转发SOAP请求
  • 如何在url中使用#作为htaccess中的redirect规则
  • Nginx:非www网站无法通过SSL(连接被拒绝)
  • 404应该与301redirect一起使用吗?
  • 质量301redirect与清漆
  • 如果只请求server_name,如何不redirect
  • 具有url转发function的可靠DNS服务
  • 为什么在IIS 6中,301redirect会间歇性地缓慢或超时?
  • Nginx将域名redirect到端口8000
  • htaccess – 根据请求来源redirect

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy