服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. apache 2.2 mod rewrite
  3. Apache重写所有stream量到新的基地
Intereting Posts
在交换服务器中审核邮箱有什么优缺点? 如何通过NFS共享ZFSfunction 如何将文件添加到没有root权限的docker容器? Squid代理 – https工作,但http网站无法正常工作 谷歌search引擎 Windows事件日志 – 服务器崩溃 SMTP邮件被接收方拒绝 V-Server上的Java 7:“无法为对象堆预留足够的空间” 系统速度/内存注意事项x86与x64 我可以通过专用networkingconfiguration路由到公用IP地址的主机吗? PostgreSQL:即使正在运行,也无法连接到服务器! 查找SQL Serverlogin的最后logindate时间 什么可以改变电子邮件标题? 无法以守护进程模式启动泊坞窗容器 OpenLDAP服务器嵌套组searchstring

Apache重写所有stream量到新的基地

我想使用Apache重写为所有stream量redirect到新的基础url。 我不希望path是相同的,我希望每个请求被redirect到“ http://sub.mynewdomain.com ”。

我的.htaccess文件看起来像这样,但什么都不做:

RewriteEngine On RewriteRule . http://sub.mydomain.org/ [R=301,L] 

  • 从源代码安装PHP
  • Apache重写忽略某个目录及其所有内容
  • 当我尝试访问一个网站没有www我得到访问被拒绝
  • 如何禁用在Apache的分块?
  • proxy_ajp通配符

  • 使用Lighttpd:apache代理或直接连接?
  • 从另一个主机名提供图像与Apache重载重写
  • 访问端口80时apache2:ssl_error_rx_record_too_long?
  • Http到https行为来自Internet Explorer客户端的访问
  • 我怎样才能使error_log无法访问networking?

RewriteEngine On
RewriteRule ^(。*) http://sub.domain.org/ $ 1 [R = 301,L]

尝试以上,这应该做你需要做的

  • 我如何设置ssl证书为我的网站在亚马逊aws在ubuntu服务器上运行?
  • 半专用的Linux服务器 – 试图找出缓慢的performance的原因
  • 设置Apache2
  • apache / python / mod_wsgi – 查看mod_wsgisubprocess正在运行的python代码?
  • apache 2和php5
  • apache2 tomcat6单个实例或多个实例
  • CentOS / Plesk服务器Apache大量使用CPU
  • 虚拟主机在OSX 10.6上的外部地址
  • 导入setproctitle模块时Django WSGI segfaults
  • 如何将非Drupal-URLredirect到Drupal URL?

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