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