Try our conversational search powered by Generative AI!

Friendly URLs when running site in Visual Studio not working

Vote:
 

Hi!

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.

#74358
Aug 26, 2013 11:30
Vote:
 

For WebForms you need to have a httpModule registered as 

<system.webServer>
<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). 

#74451
Aug 28, 2013 9:44
Vote:
 

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.

#74479
Aug 29, 2013 9:20
Vote:
 

Hello again!

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

#74481
Aug 29, 2013 9:26
Vote:
 

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?

#74482
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.