request - Do not allow ".xml"/".html"/"index" in URI? -
i'm going through lift's basics in section 3.2 sitemap
of lift , 1 thing struck me.
using default sitemap
code, can ask for, say, info
view in three ways:
get /info
,get /info.html
,get /info.xml
(why?).
what more, can request index
view in four different ways:
get /
,get /index
,get /index.html
,get /index.xml
.
how can limit behaviour get /
directories , get /info
files?
p.s. of these return 200 ok
:
shouldn't 1 resource have 1 url only?
there more 4 ways can parsed. full list of known suffixes (any of can used access page) can found here.
i think reason lift can used serve resource, explicitly added default.
i think disable lift's processing of extensions adding boot.scala
:
liftrules.explicitlyparsedsuffixes = nil
however, wouldn't recommend there may side-effects.
using req
resthelper
can specify suffix explicitly, don't know if there such construct sitemap
.
Comments
Post a Comment