Try our conversational search powered by Generative AI!

Friendly URLs when running site in Visual Studio not working



Our CMS 7 site uses friendly url:s, but when I run the site by pressing "play" in Visual Studio 2012 the url:s are for example site/templates/default.aspx?id=12.

Is it some settings that are missing or what can it be? It doesn´t matter if I run Cassini, IIS-express or IIS 7.5.

I tested the Alloy tech site and that uses friendly url:s when running in Visual Studio.

Aug 26, 2013 11:30

For WebForms you need to have a httpModule registered as 

<modules runAllManagedModulesForAllRequests="true">
<add name="UrlRewriteModule" type="EPiServer.Web.RoutingUrlRewriteModule, EPiServer" preCondition="managedHandler" />
..other modules

Cassini uses the "old" IIS configruation element (like httpModules instead of modules and so on). 

Aug 28, 2013 9:44

Thank you, but unfortunately it didn´t help. The url:s still look like this: http://localhost:50523/Templates/EntrancePage.aspx?id=505&epslanguage=sv It´s the same if i run in IIS or IIS-express. Not just in Cassini.

Aug 29, 2013 9:20

Hello again!

Now it´s working in IIS and IIS-express. I was wrong in my last answer. Thanks for your help!

Aug 29, 2013 9:26

I have had the similar problem. But only in editmode. when editing an url in edit mode I get an non friendly url and also get a link with a guid and the page id at the end. Am i doing something wrong cause render in templete is working great though?

Aug 29, 2013 9:28
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.