One idea I have is to create redirect pages using umbracoRedirect. This would mean creating a separate redirect page for each page - not ideal.
Another idea would be to generate a shortened URL when a node is first published and store it in a Document Type property the user couldn't edit. What I'm not sure of is how to hijack the route so that something like http://www.domain.com/9a8eed8c would work.
Any other suggestions would be greatly appreciated.
URL shortener with same domain
I'm looking into creating a shortened URL functionality as shown below
One idea I have is to create redirect pages using umbracoRedirect. This would mean creating a separate redirect page for each page - not ideal.
Another idea would be to generate a shortened URL when a node is first published and store it in a Document Type property the user couldn't edit. What I'm not sure of is how to hijack the route so that something like http://www.domain.com/9a8eed8c would work.
Any other suggestions would be greatly appreciated.
Hi
Please refer to the following link:
https://our.umbraco.org/projects/developer-tools/routing/feedback/61218-Short-Urls
hope this help
Regards,
Samira
My article tells you how to do this really easily.
http://www.codeshare.co.uk/blog/create-a-redirect-page-in-umbraco-without-editing-the-config-file/
Thanks for the input Paul, I was hoping to hijack the route rather then create lots of redirect pages.
This would be a good fallback idea though.
Hi Sean,
Why don't you create one redirect page that effectively uses a lookup to perform the redirect.
You could base this on the parameter being passed in as part of the URL, then you just need to maintain a master list of Shortened -> Long Urls.
You could do this in a controller, so there isn't a page but simply a controller level redirect.
Nik
Hi Nik
I'm looking to implement this in a controller and trying to find an example of how best to do this.
is working on a reply...