London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Multiple simple url:s on single page

Vote:
 

Hi!

Is it possible to have more than one simple url on a page? I want to avoid creating multiple pages and use dynamic content.

/Peter

#53165
Aug 30, 2011 14:09
Vote:
 

Hi Peter,

Each page has a property called PageExternalURL that contains the "simple url" for the page. Thus it is not possible to have mueltiple simple urls on one page.

There are two solutions:
1. Create a new page and add a shortcut to the right page
2. Use the URL Rewrite IIS module to add a redirect rule 

string simpleurl = (string)CurrentPage.Property["PageExternalURL"].Value;

-Alex 

#53178
Aug 31, 2011 9:10
Vote:
 

Thanks, I'll try that out.

 

/Peter

#53181
Aug 31, 2011 10:38
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.