服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. apache 2.2 mod rewrite
  3. mod_rewrite帮助 – 子目录变成了子域名
Intereting Posts
iis的基本authentication与Kerberos? Windows Small Business Server 2003 – > Windows Server Essentials 2016 网站的增量备份 SQL 2008升级与并排? OpenVPN GUI在Windows 7上保持断开/重新连接 Windows 2016 DNS服务器:在recursionparsing委派区域中的CNAME时不使用转发器? Nginx的代理传递和URL重写 IIS 7 Web服务访问 使用nginx和/或varnishcaching服务器生成的301redirect 每天早上6点左右,EC2实例的空闲内存突然下降 整个SAN卷上的LVM直接与单个整个SAN卷上的LVM跨越分区 连接多达127个USB设备MY ASTERISK! 我的约4后放弃! 如何configurationWeb / FTP服务器,使其下载.sh文件,而不是显示其内容 不同子网之间的临时通信 loggingIIS操作 – 池级别的操作

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