对于上述情况,我需要进行重定向和重写:
当用户转到“ http://my-website/jobs”时,要解析的网址必须为“ http://my-website/jobs.html”
url.rewrite-if-not-file = (
"/jobs$" => "/jobs.html"
)
然后,当用户转到“ http://my-website/jobs.html”时,重定向到“ http://my-website/jobs”
url.redirect = (
"^/jobs.html$" => "/jobs"
)
有帮助吗?