Hi guys, I have a case that is pretty similar; old url should be rewritten to new url without changes to the rest - BUT this should happen ONLY when old url has certain querystrings. I'm really not good at this url rewriting regex stuff - could you give me advice?
Both urls are on the same Umbraco installation, the two domains assigned.
Hi guys, I have a case that is pretty similar; old url should be rewritten to new url without changes to the rest - BUT this should happen ONLY when old url has certain querystrings. I'm really not good at this url rewriting regex stuff - could you give me advice?
Both urls are on the same Umbraco installation, the two domains assigned.
URL rewriting - how do I do this?
I am working on a site and we have changed the main URL.
I want to be able to do some rewriting, along the lines of:
- oldURL.com/accommodation -> newURL.com/accommodation
- oldURL.com/contactdetails - newURL.com/contactUs
- etc. (many more rules)
- anything else goes to newURL.com
How I have set this up is:
but it doesn't work as intended. Any ideas on how this should be structured?
Thanks
Paul
Depending on how different the old and new URL's are you may find it easier to create your own UrlRewriting provider.
If it's purely a domain redirect this should surfice:
That'll take everything before & after the domain and place it into the new site.
Hi Slace,
That is how I generally do but the $2 section will be completely different in this particular site so this will not work.
Thanks
Paul
ok, the best way I can seem to implement this is to set the rewriting as:
and then set up a 404 redirect to the home page to account for the links that arn't expicitly redirected.
Hi guys, I have a case that is pretty similar; old url should be rewritten to new url without changes to the rest - BUT this should happen ONLY when old url has certain querystrings. I'm really not good at this url rewriting regex stuff - could you give me advice?
Both urls are on the same Umbraco installation, the two domains assigned.
Example:
This should not be rewritten: http://www.NT.no/forsiden/europa/amsterdam
This should be rewritten: http//www.NT.no/forsiden/europa/amsterdam?alttemplate=unikdestinasjon
to: http:www.UT.no/europa/amsterdam?alttemplate=unikdestinasjon
Thanks for any response!
Hi guys, I have a case that is pretty similar; old url should be rewritten to new url without changes to the rest - BUT this should happen ONLY when old url has certain querystrings. I'm really not good at this url rewriting regex stuff - could you give me advice?
Both urls are on the same Umbraco installation, the two domains assigned.
Example:
This should not be rewritten: http://www.NT.no/forsiden/europa/amsterdam
Thanks for any response!
is working on a reply...