The "umbracoUrlAlias" property shouldn't have the ".aspx" extension (or leading forward-slash), so yes the directory (extension-less) URL should work - as long as you've got the web.config's appSetting "umbracoUseDirectoryUrls" set to true).
Also the property alias name is case-sensitive, double check that you are using "umbracoUrlAlias" and not starting it with an uppercase "U".
Umrbraco Alias without .aspx extension
Hi,
Is it possible to use UmbracoUrlAlias to create an alternate url without .aspx extension?
eg. I have set up an alias mywebsite.com/alternate-url.aspx but I would like it to be mywebsite.com/alternate-url
Thanks,
Rachel
Hi Rachel,
The "umbracoUrlAlias" property shouldn't have the ".aspx" extension (or leading forward-slash), so yes the directory (extension-less) URL should work - as long as you've got the web.config's appSetting "umbracoUseDirectoryUrls" set to true).
Also the property alias name is case-sensitive, double check that you are using "umbracoUrlAlias" and not starting it with an uppercase "U".
Cheers, Lee.
Thanks Lee, it's the appSetting that I'm missing!
I have set the appSetting umbracoUseDirectoryUrls set to true but I am still getting 'Page cannot be displayed'
(when set to false the alternate url works fine with .aspx extension)
Thanks,
Rachel
Hi Rachel,
Do you know which version of IIS your website is using? IIS7 should work fine ... so I'm thinking it's IIS6?
If so, take a look at this page: http://our.umbraco.org/wiki/install-and-setup/setting-up-umbraco-for-friendly-urls
Cheers, Lee.
Hi Lee,
Yes, we are using IIS6 - Thanks for posting the article ;)
Cheers,
Rachel
is working on a reply...