0
我需要重寫像domain.ltd/dev/*.html所有請求domain.ltd/dev/index.phpNginx的重寫所有的HTML到PHP
location ~ /dev/\.html {
rewrite^/dev/index.php last;
}
這不工作
我需要重寫像domain.ltd/dev/*.html所有請求domain.ltd/dev/index.phpNginx的重寫所有的HTML到PHP
location ~ /dev/\.html {
rewrite^/dev/index.php last;
}
這不工作
location ~ ^/dev/.*\.html {
rewrite^/dev/index.php last;
}