Hi,
How do I take care of permanent page-redirects after converting an old static site to a silverstripe site? I want to redirect the old pages to the silverstripe counterparts. That is, on the old site I had a page with the url:
http://www.pathfindertravels.se/pages/pathvand/marockov1.html
which on the new site correspondes to:
http://www.pathfindertravels.se/vandring-i-atlasbergen-marocko/
Normally I would just add rows in .htaccess to handle this, like:
redirect 301 /pages/pathvand/marockov1.html http://www.pathfindertravels.se/vandring-i-atlasbergen-marocko/
But this doesn't work. (Well it partly works, since the new rewritten url is http://www.pathfindertravels.se/vandring-i-atlasbergen-marocko/?url=/pages/pathvand/marockov1.html)
Should I be using Director::redirectPerm instead? And if so, how do I do that? Other ideas?
Thanks in advance,
/Jens