I’ve moved the system folder above root on other sites, and it was OK.. This time, I followed the same steps, but it all went pear shaped.. I haven’t a clue what I’ve done wrong - everything looks fine on the actual website. The system path in index.php and the admin php files at root level are set to ‘../mysystem’; The control panel path in the config.php file is set to
$config[‘cp_url’] = ‘http://mysite.net/admin.php’; ... I just can’t see what I’ve done wrong. Any ideas please?
FIXED!!
I’ve been updating EE from previous versions, and (I think) the admin.php file in the root folder only appeared in later builds. Before that (I think) there was just an index.php file in the systems folder and in the root folder.
I didn’t properly understand the different purposes of these two files. So just stating this for anyone else who (like me) hadn’t really absorbed this..
Both act as routers but the index.php file in the root folder provides access to the front end, and the index.php file in the system folder provides access to the back end i.e. they’re different, though the contents look much the same. They do have different file sizes though..
Because I wasn’t clear about all this, and because it was late at night… when I moved the system folder to above root, I copied the index.php file in the root folder and renamed this copy admin.php. WRONG. I should have first renamed the index.php file in the SYSTEM folder to admin.php and then moved it to the root folder, alongside the existing root folder index.php file.
Fortunately I had the MIJINGO how-to booklet on securing ExpressionEngine. I re-read it (properly this time) – it describes the difference between the two index.php files… so I finally got it. Three cheers for how-to guides that provide some simple (but necessary) info about concepts.