服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. 301 redirect apache 2.2 httpd mod rewrite
  3. Apache – 如何忽略301redirect中的path和参数
Intereting Posts
我如何在我的后缀别名中使用“catchall”? DRBD LVM支持vs.物理和LVM​​filter 在Apache中将stream量转发到HTTP标头中的URL 我使用后缀,为什么我的Maildir包含14,000个文件? 有没有人发现一个(如bash)的Windowsterminal的Windows一样好OS X之一? “低地址位是无意义的”是什么意思? 间歇性SSL证书错误,证书是针对不同的网站 现代化传统的Windows应用程序环境 将机器移动到不同的办公室/域后,无法login到SQL Server 如何configurationIBM 4247-003打印机的IP地址? MySQLlogging缓慢的查询 Novell Identity Manager(NIM)3.6:如何使图像成为HTML报告资源的一部分? 如何为远程办公室find有效的IT支持? CGroups内存限制不起作用 即使授予Sudo,Ansible也不能validationSudo

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