So I had a page called "Where to go when" that used to live at www.example.com/where-to-go-then that page for various reasons has now been renamed holiday-calendar and lives at www.example.com/holiday-calendar
I've set up a rule in UrlRewriting.config that looks like this:
The problem is that if you go to the old Url, the old Url serves up the new content - it doesn't "bounce" the visitor to the new Url. As it stands - with the new Url, there is duplicate content on the site and that's bad!
Problem with URL re-writing
Hi,
So I had a page called "Where to go when" that used to live at www.example.com/where-to-go-then that page for various reasons has now been renamed holiday-calendar and lives at www.example.com/holiday-calendar
I've set up a rule in UrlRewriting.config that looks like this:
The problem is that if you go to the old Url, the old Url serves up the new content - it doesn't "bounce" the visitor to the new Url. As it stands - with the new Url, there is duplicate content on the site and that's bad!
Umbraco version 4.7.1.
Any ideas much appreciated.
Cheers
Simon
Hi Simon
Here's an example of my redirects that work like a charm. It sends 302 to the visitor and redirects :)
Maybe you need redirect="Application"?
Cheers,
NileZ
Also this package is really helpful for this sort of things.
Thanks a lot for the responses - as per usual the problem was between the keyboard and the chair!
The syntax is redirect="Application" NOT rewrite="application" that I'd been using.
Have ammended and everything's working fine now.
Cheers
Simon
is working on a reply...