开发者

Umbraco cannot browse page by pagename.aspx

开发者 https://www.devze.com 2023-01-14 13:28 出处:网络
I have two seperate clean installations of Umbraco 4.5.x and both are having similar problems with page handling. If I browse pages by ID like /1083.aspx the page displays correctly, but if I try to b

I have two seperate clean installations of Umbraco 4.5.x and both are having similar problems with page handling. If I browse pages by ID like /1083.aspx the page displays correctly, but if I try to browse by name like /about-us.aspx it gives 404 -开发者_StackOverflow file or directory not found.

Thanks in advance.

Sanjay


Sanjay,

This is because when you're hunting for root content nodes, the umbracoHideTopLevelNodeFromPath appSetting in the web.config is set to true by default. As the name might imply, this hides the top-level node from the URL path. You can set it to "false" to override this behaviour.

HTH,

Benjamin

0

精彩评论

暂无评论...
验证码 换一张
取 消