Url rewriting

Feb 29, 2008 at 12:47 PM
Edited Feb 29, 2008 at 12:59 PM
Hello

I used N2 CMS for company in witch I work and I like it very much:-)
Now, I have a question: Is it possible to change url's extension from .aspx to .html or something similar and how? I would appreciate a short explanation on how url rewriting works in N2 CMS.
Thanks in advance
Coordinator
Feb 29, 2008 at 2:24 PM
Hi there,

Insert this into web.config to change the extension (and make sure .html is mapped to aspnet_isapi in iis):
	<castle>
		...
		<components>
		  <component id="n2.urlParser">
			<parameters>
			  <DefaultExtension>.html</DefaultExtension>
			</parameters>
		  </component>
		<components>
	</castle>

this older post explains the url rewriting implementation
Feb 29, 2008 at 2:36 PM
Thank you very much!