服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. apache 2.2 mod rewrite
  3. mod_rewrite帮助 – 子目录变成了子域名
Intereting Posts
Server 2008 R2 – GPO删除“菜单栏” apache指向Ubuntu的python的错误版本我该如何改变? 尝试启动/重新启动时,Fail2ban错误“数据库已被locking” 跟踪共享主机上个人网站的资源使用情况 vmstat真的使用多less资源? nginx公共webdav服务器 Apache22显示PHP源代码 内核无法在任何Linux发行版中分配内存 我如何设置Apache的子域? 如何判断一个网站是否使用CloudFlare反向代理服务? 如何设置到Windows 7计算机的串行连接 如何转发和自动回复传入的电子邮件? CentOS ifcfg-eth0configuration文件被删除。 实用程序来重新创build它? 在系统数据库上复制 两个networking从一个adsl连接,

mod_rewrite帮助 – 子目录变成了子域名

我有http://example.com/intranet/ ,我不得不把它变成http://intranet.example.com不幸的是,一切都写入绝对path,所以它的像<a href="/intranet/timeclock">time clock</a>

所以你看到我的困境。 一切都想去/ intranet /时钟

我尝试了一些重写规则

  RewriteRule ^/intranet / [R,L] RewriteRule ^/intranet/(*.) /$1 [R,L] 

和别的。 没有运气。 我看了服务器故障的其他职位,并尝试了一些没有运气也。 安迪的build议?

  • 在phpmyadmin中导入sql dump后发生内部服务器错误
  • PHP文件没有执行
  • Apache目录权限问题
  • 不要运行apache2on启动
  • 301redirect多个域

  • 如何让Apache 2.2使用早期版本的libapr?
  • 如何在Apache下添加到Review Board使用的searchpath
  • PHP如何configuration,以便上传的文件不保存与APACHE用户?
  • 如何加快Apache
  • mod_wsgi / 3.2使用mod_rewrite将解释器上下文与Apache2上的django混合。为什么?

RewriteEngine On

RewriteRule ^ / intranet /(.*)$ http://intranet.example.com/ $ 1 [R = 301,L]

  • Apache别名到Ruby on Rails应用程序
  • Apache子域redirect
  • 为什么mod_wsgi有双重的apache进程?
  • redirect到相应的虚拟主机一个错误的第三级域
  • 编辑本地文件(运行django和php网站)
  • Solr读超时(仅在生产环境中)
  • 在同一台Apache机器上主持ssl和非ssl站点
  • 如何在Ubuntu 2.2中启用IP和虚拟名称访问?
  • 不能用PHP安装GD
  • HA的2个服务器的最佳解决scheme

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