Setting / changing the default (“index”) page in a LiftWeb app

為{幸葍}努か 提交于 2019-12-08 08:59:30

问题


I've googled like crazy but can't find an answer to this.

How do I change the page displayed for http://www.mydomain.com/? (Right after the web app is created the page defaults to index.html. I'd like to change this!)


回答1:


You can't change it.

Lift converts the request for "/" to List("index"). Any "blank" part of the request path is converted into "index". Thus, the "index.html" template will be used to serve "/index" and "/".



来源:https://stackoverflow.com/questions/6525039/setting-changing-the-default-index-page-in-a-liftweb-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!