I wonder if someone could help me out with a problem ive been stuck on for some time:
I have a fairly large site that due to content requirements nests folders, the consequent end url of the folders is undesirable however. Is there a way to use the UrlRewriting facility to remove specific levels within the folder structure?
For example, converting:
current url: www.mysite.com/country/global/north-america/canada/filename.aspx
to
desired url: www.mysite.com/canada/filename.aspx
I have looked at the umbraco alias package & bit.ly packages but neither really do what i want.
I have no experience with RegEx so any assistance would be greatly
appreciated, i've tried editing the urlrewrite config but keep recieving errors.
Regards,
Tom
- If anyone knows another way to automatically reduce the size of the urls, without changing structure I would be more than happy to hear it :)
UrlRewriting rewrite url to make it shorter?
Hi,
I wonder if someone could help me out with a problem ive been stuck on for some time:
I have a fairly large site that due to content requirements nests folders, the consequent end url of the folders is undesirable however. Is there a way to use the UrlRewriting facility to remove specific levels within the folder structure?
For example, converting:
current url: www.mysite.com/country/global/north-america/canada/filename.aspx
to
desired url: www.mysite.com/canada/filename.aspx
I have looked at the umbraco alias package & bit.ly packages but neither really do what i want.
I have no experience with RegEx so any assistance would be greatly appreciated, i've tried editing the urlrewrite config but keep recieving errors.
Regards,
Tom
- If anyone knows another way to automatically reduce the size of the urls, without changing structure I would be more than happy to hear it :)
The current url was:
http://www.mysite.com
/country
/global
/north-america
/canada
/filename.aspx
url/5foldernames/filename.aspx
You could try to add a property to your pages: umbracoUrlAlias
More info here: http://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracourlalias
You don't need to do anything else, just fill that with the desired url-name, umbraco will pick it up.
Does this help?
Peter
Hi Peter,
Thank you for your reply. Ive looked into the umbracourlalias & it doesnt quite provide the solution.
- I would like a solution that provides one unique url
- Doesnt require a change to the umbraco content structure
- Works automatically without the user having to enter a desired url.
Any ideas?
Regards,
Tom
Hi Peter,
Thank you for your reply. Ive looked into the umbracourlalias & it doesnt quite provide the solution.
- I would like a solution that provides one unique url
- Doesnt require a change to the umbraco content structure
- Works automatically without the user having to enter a desired url.
Any ideas?
Regards,
Tom
Hi Peter,
Thank you for your reply. Ive looked into the umbracourlalias & it doesnt quite provide the solution.
- I would like a solution that provides one unique url
- Doesnt require a change to the umbraco content structure
- Works automatically without the user having to enter a desired url.
Any ideas?
Regards,
Tom
is working on a reply...