服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. .htaccess apache 2.2 redirect
  3. 301从www.example.com/thisredirect到.example.com
Intereting Posts
绑定统计(如何将它们绘制成仙人掌) nginx:如何在nginx中添加新的site / server_name? 如果所有的传出连接/端口都打开,有什么风险? 我可以使用OEM密钥激活Windows Server试用版吗? Ubuntu OS X LDAPauthentication 鱿鱼cache_peer循环algorithm不按预期工作 有没有办法通过防火墙在Windows Server 2008 / FTP 7.5上运行FTPS? 如何安排重新启动的启动任务 Nginx用一个外部程序重写 寻找内核空间程序 在我的nGinxconfiguration中避免重复的代码 什么是Linux / Apache网站的理想权限,以使团队工作,但保护一些文件 MS Operations Manager 2012 Web控制台访问Active Directory用户和计算机 默认的CentOS Linux服务不会在启动时启动 有没有办法find谁是一个DNS区域?

301从www.example.com/thisredirect到.example.com

我想将www.example.com/this/或example.com/this/redirect到.example.com

目前在我的.htaccess文件中,我有:

RewriteEngine on RewriteCond ${HTTP_HOST} ^(www\.)?example\.com/this$ RewriteRule ^(.*) http://that.example.com/$1 [R=301,L] 

然而,这不适合我。

  • 在一个SSI中,包含的文件是否可以被redirect到.htaccess文件中
  • Apache拒绝直接访问exception
  • Apacheurl将`-`改写为`_`
  • .htaccess安assembly置
  • 有条件的包括.htaccess文件

  • Apache服务器上的目录redirect
  • 在.htaccess中找不到文件
  • htaccess重写引导斜杠
  • 允许访问joomla页面的ip的'拒绝'
  • 根只使用.htaccessredirect

Apache的mod_alias redirect更简单,你可以尝试这样的事情:

 Redirect /this http://that.example.com/ 

%HTTP_HOST只会匹配主机名(www.example.com)。 您还需要在%REQUEST_URI上匹配,然后使用它插入到规则中

 RewriteCond %{REQUEST_URI} !^/(.*)$ 
  • 用querystrings路由子域
  • 使用utf-8字符的.htaccess
  • 理解.htacces文件中的RewriteCond
  • 没有findhtaccess
  • Apache从网上隐藏特定的文件types
  • configuration.htaccess来阻止僵尸索引,但允许浏览器目录列表/查看
  • 如何从查询string的URL中间删除一个斜杠?
  • 如何通过htaccess只将根页面redirect到另一个子域名?
  • 为什么我的mod_rewriteredirect仅适用于请求的页面,而不是必要的CSS,JS文件?
  • 限制未列入白名单的IP查看Apache中的目录列表

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