0
www.example.com/alpha
到
www.example.com/beta
我想这一点,但它不工作
RewriteEngine on
rewritecond %{http_host} example.com/alpha [nc]
rewriterule ^(/)?$ beta [L]
www.example.com/alpha
到
www.example.com/beta
我想这一点,但它不工作
RewriteEngine on
rewritecond %{http_host} example.com/alpha [nc]
rewriterule ^(/)?$ beta [L]
试试这个:
RewriteEngine on
RewriteCond %{http_host} example.com\alpha$
RewriteRule \beta$ - [L]
这导致500内部服务器错误。 – 2012-04-24 13:38:34