【发布时间】:2013-11-13 17:04:08
【问题描述】:
我正在尝试编写一个看起来与此类似的网址:
http://foo.domain.com/bar/fee/
到这里:
http://IP:port/bar/fee/
这是我当前的代码:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^foo.domain.com/
RewriteRule ^(.*) http://IP:port/$1 [P]
但这不起作用,因此提出了这个问题。
【问题讨论】:
标签: regex apache .htaccess mod-rewrite proxy