How to set a single page at the root of my sitemap?1 user found helpful
What is the best way to do this?
P.S.: I'm using concrete 220.127.116.11
If so I don't really think that is possible - if someone knows better please chip in and contradict me.
If you want the specific functionality of the single page as your homepage I would investigate creating a specific page type for your homepage and create a controller for that page type using the logic from your single page controller. I've never actually attempted this so there may be some pitfalls I don't know about.
Preferably without using Apache configuration files.
you could do a check for the cID of the page right at the top of your included header and if the cID == 1 (meaning homepage) then do something like:
header("HTTP/1.1 301 Moved Permanently");
But - I have just written this here as on off-the-cuff thought. I haven't fully thought through the implications of this so really I would test this on a dev website first to see if anything funny happens.
$page = Page::getByID(1); Redirect::page($page)->send();
Is it better? What do you think?