服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. .htaccess apache 2.2 redirect
  3. 301从www.example.com/thisredirect到.example.com
Intereting Posts
获取给定types的资源列表 处理来自被阻止的IP的POST请求 如何查询惠普智能arrays背板/机箱的固件版本(使用脚本)? LVM,设备映射器,软件RAID和块设备的Readahead设置 – 什么赢? 通过本地DNSparsing域到另一个域的IP 在非分页区域中发生2012 R2 Hyper-V VM页面错误 在虚拟目录中的Ghost(博客)/ IIS 8上出现404错误 我如何提取login历史logging? 从systemd-nspawn容器访问主机服务 如何使用IMAP跨多个用户设置电子邮件帐户 我应该为这个RAID-5设置select什么样的条带大小? 无法在本地模式下解决厨师外部菜谱依赖关系 在.htaccess中为suhosin设置设置每个文件夹的值 Windows 200x服务器 – 用户组与用户权限冲突 Sonicwall NSA 240不允许vpn客户端以比率模式连接。

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