Change Extention / URL Rewrite ASPX to HTML or something else

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
6/25/2010 5:53:46 PM
Gravatar
Total Posts 1

Change Extention / URL Rewrite ASPX to HTML or something else

Hi,

i've installed mojo and i really like it, but i want to change the .aspx extention to .html

So i downloaded URL Rewrite for IIS 7.5 (http://www.iis.net/download/URLRewrite)

I created RULE which acutally works. Pattern: ^(.*)\.html$  Destination: {R:1}.aspx

But when I try to tell mojo isnt a .aspx page on url and use instead .html

Mojo doesnt find the page anymore and tells me to lookup sitemap for existing files.

I guess content is loaded by host header or scriptname. Is there anyway to have different extention to aspx?

 

Thanks. Kind regards.

6/26/2010 6:31:53 AM
Gravatar
Total Posts 18439

Re: Change Extention / URL Rewrite ASPX to HTML or something else

Hi,

mojoPortal has it's own url re-writer so using one from IIS before it is going to be problematic. I recommend firts understand how our url re-writer maps friendly urls to real urls.

http://www.mojoportal.com/using-friendly-urls-in-custom-features.aspx

you can use extensionless urls as documented here:

http://www.mojoportal.com/extensionless-urls.aspx

some additional information I think may help in the videos

http://www.mojoportal.com/dev-series-7-concepts-part-1.aspx

and

http://www.mojoportal.com/dev-series-8-concepts-part-2.aspx

using some arbitrary extension may be possible, I don't know and I don't test that or try to support it.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.