From time to time, I’ve had the need to move templates on my site (mainly to make urls simpler and make more sense). When doing so, I’ve desired to redirect from my old template to the new template, to avoid any problems from folks who have bookmarked a page or people coming from a search engine.
To accomplish that, I’ve taken to placing the something like the following in the old template:
<?php
header("HTTP/1.1 301 Moved Permanently");
header('Location: <a href="http://website.com/new_template/{segment_3}">http://website.com/new_template/{segment_3}'</a>);
?>Of course, PHP is turned on (on input) for the old template in these cases.
This has worked as expected, but it seems to have stopped working with my recent upgrade to 1.6.0 (I upgraded to the most recent build a hour ago to try and fix the problem). I also tried playing with my htaccess file to accomplish the same thing, but I can’t get it to work as expected (I also hide the index.php from my urls).
Accessing the page from Omniweb says “Cannot Load Address: Bad Server Response”.
Any insight into this or suggestions would be appreciated.
Thanks in advance.