Sherry, I'd go for the umbracoUrlAlias as well, as Lee suggested, but maybe you should check out the Canonical meta link package if you use that option. It's always a great idea to tell Google that the page they are currently at, is originally posted at another link.
I guess you could use the UrlRewriting.config file in the config folder to achieve this. Unfortunately I don't have any experience using it myself. Therefore I'm not that familiar with the syntax and how you need to make the rewrite rule. I just know that it is possible to do it this way, since we have used it on a large project were I work.
Is it possible to rewrite the url by removing the parent node?
Hi,
Is it possible to rewrite this url
http://www.mydomain.com/hotel-apartments/dubai-flora-creek-hotel-apartments.aspx?hotelID=4
to
http://www.mydomain.com/dubai-flora-creek-hotel-apartments.aspx
Hi Sherry,
You could use the "umbracoUrlAlias" property alias to allow the page to be accessible with a custom URL?
Cheers, Lee.
Sherry, I'd go for the umbracoUrlAlias as well, as Lee suggested, but maybe you should check out the Canonical meta link package if you use that option. It's always a great idea to tell Google that the page they are currently at, is originally posted at another link.
/Kim A
If I use the umbracoUrlAlias, I won't have any problems with my SEO?
I use this in the umbracoUrlAlias /dubai-flora-grand-rooms.aspx
but somehow the link to document did not change
ok got it now. I should have remove the aspx extension. :D
Thanks,
Sherry
I was able to remove the parent node from the url
here's my new url
http://localhost/dubai-flora-grand-hotel.aspx?hotelID=1
but how can I remove the querystring?
Hi Sherry,
Umbraco doesn't generate the querystring for the URL - its most likely coming from elsewhere in your code/templates?
Are you using an XSLT macro to display your navigation/links? Would you be able to provide a snippet? (So we can help you to resolve it.)
Cheers, Lee.
Hi Sherry
I guess you could use the UrlRewriting.config file in the config folder to achieve this. Unfortunately I don't have any experience using it myself. Therefore I'm not that familiar with the syntax and how you need to make the rewrite rule. I just know that it is possible to do it this way, since we have used it on a large project were I work.
/Jan
It seems that the problem with umbracoUrlAlias is that it does not the affect descendants of the page.
is working on a reply...