有人能告诉我如何/为什么这个redirect不起作用?
$HTTP["host"] =~ ".*\\.mydomain\\.com" { url.redirect = ( "/index\.php\?pg=mysql" => "http://mydomain.com/lean-webhosting/mysql-clustering/", "/index\.php\?pg=cloud_uitleg" => "http://mydomain.com/lean-webhosting/cloud-uitleg/" ) }
有人有任何想法? 谢谢!
您可能需要将".*\\.mydomain\\.com"replace为".*\.mydomain\.com"并重新启动lighttpd 。 如果这没有帮助:请解释redirect如何不适合你。
$HTTP["host"] =~ ".*\.muntinternet\.nl" { url.redirect = ( "/\?pg=mysql" => "http://muntinternet.nl/lean-webhosting/mysql-clustering/", "/\?pg=cloud_uitleg" => "http://muntinternet.nl/lean-webhosting/cloud-uitleg/" ) }
我需要排除/index\.php
谢谢!