23377 Posts in 18296 Topics by 2867 members
|Go to End|
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.html
Is there anyway to stop this withou intereferring with the Silverstripe function?
3 May 2009 at 11:50pm
Just had the same problem. I'm no coder but this is working for me. Use:
..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!
|Go to Top|