服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. 301 redirect apache 2.2 httpd mod rewrite
  3. Apache – 如何忽略301redirect中的path和参数
Intereting Posts
无法获得边运输接收互联网邮件 JbossAS7上的SSL协议版本TLs1版本错误 传出消息中的两个DKIM签名 为了响应Heartbleed,我需要replaceOpenSSH的密钥吗? 如何更改Postfix中的Envelope? 非托pipeVPS备份技术 如何重置命令窗口大小? 互联网带宽与HP1810-8G分离,使用“DSCP QoS策略”和VLAN 使用mod_fcgid而不是mod_cgi 通过OpenVPN / Windows Server 2008慢速打印networking 如何监视远程Icinga服务器上的NRPE守护程序 什么是lighttpd的“mod_substitute”的版本? 在更新之后,Dovecot无法使用“IMAP插件” vsftplogin错误530login不正确 调整OpenVZ Containers以更好地使用Java?

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