21288 Posts in 5733 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 852 Views |
-
including page specific redirects from old domain

26 March 2009 at 8:10am
I have just rebuilt a site using Silverstripe and it has moved domains at the same time. The old domain has been parked at the base new one but I want to be able redirect specific pages on the old site to specific ones on the new one.
I am using lines like:
Redirect 301 /escorted_tours.html http://www.theactivegourmettravel.com/escorted-tours/
in the .htaccess file but because of the Silverstripe rule this redirects to http://www.theactivegourmettravel.com/escorted-tours/?url=/escorted_tours.htmlIs there anyway to stop this withou intereferring with the Silverstripe function?
Many thanks
Catherine
-
Re: including page specific redirects from old domain

3 May 2009 at 11:50pm
Just had the same problem. I'm no coder but this is working for me. Use:
http://www.theactivegourmettravel.com/sapphire/main.php?url=/escorted-tours/
..in the destination. It will resolve to the proper URL when used in a redirect, but not when you use it in a browser yourself (though still gives you the right page).
Hope that helps!
| 852 Views | ||
|
Page:
1
|
Go to Top |

