Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

User friendly URLs

Vote:
 

We have a EPiServer page structure, with several levels deep.  When a page is displayed, the URL in the browser web address box is along the lines of http://<server>/en/securepages/MyPage/.  We want the url visible to the user to be, in the example above, http://<server>/MyPage/.

Can we 'hide' parts of the page tree structure in the URL without actually flattening it?  The 'pages' we want to hide in the URL themselves have no purpose other than being containers.

Any suggestions would be most appreciated.

#50047
Apr 11, 2011 15:26
Vote:
 

Hello Daryl

This is possible by setting the "Simple Address for this page" value in the settings tab. This allows you to specify short URLs for your pages.

David

#50051
Apr 11, 2011 16:07
Vote:
 

Thanks David.

We had looked at that option, but we were hoping to achieve this through code, without 'Simple Address for this Page' being used or at least not the responsiblility for the CMS editor who may be creating new pages.

#50055
Apr 11, 2011 16:28
Vote:
 

One option could be to set up event handlers for Url rewriting events exposed by EPiServer.Web.UrlRewriteProvider. In your case you would need to have event handlers both for incoming and outcoming URLs.

#50113
Apr 13, 2011 7:09
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.