Good Day!
I have the following problem.
I have
Director::redirect('home');
rule in Page.php and on localhost everything works fine. But on live site it just ignores this code. Why could this happen?
And one more question: at this moment I'm trying to redirect pages from old site to new pages in SilverStripe. Old site is created with php and xml and it has links like "xslt.php?xml=pagelink" and now I want to redirect it to "pagelink" (like it is named in SilverStripe CMS). Writing in htaccess smth like
RewriteRule ^xslt.php?xml=pagelink$ pagelink
doesn't work. And as I said before Director::redirect doesn't work either. Maybe there is another solution for redirecting pages like "xslt.php?xml=pagelink"?
Any help is really appreciated!
Thanks in advance