ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Issue with the .htaccess file in 2.8, but only if you've moved your admin.php file

March 21, 2014 10:32am

Subscribe [1]
  • #1 / Mar 21, 2014 10:32am

    tomjeatt

    19 posts

    Hi - if I had the reputation I’d add this to the user guide, but since I don’t I thought I should put it here in case anyone runs into the same problem I did.

    To keep things neat, I always move my admin.php file to a directory, rename it index.php, and then update the relevant paths. And like most people I also use .htaccess to remove index.php from my URLs.

    With 2.8 it looks like the generated control panel URL now includes the file name (which in my case is index.php… I’m sure you can see where this is going). If that file name is index.php then the .htaccess file removes it, leading to a disallowed key character error and a little bit of head-scratching.

    It’s an easy fix - just add an extra line to the .htaccess file, and exclude that directory in the same way as you do with the system directory:

    RewriteCond %{REQUEST_URI} !/youradmindirectory/.* [NC]

    Obviously it’s a bit of an edge case, but I think this would have stumped me a lot harder than it did if I’d come across it when I was upgrading a site, rather than starting from scratch.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases