I'm trying to take a live / currently well functioning production site and create a local version. I downloaded all the files and the database and the site itself now works on my local device but whenever I try to access any of the admin pages to edit the site, I get a 404 page from Craft.

I replaced my entire craft/app folder to help ensure no corrupt file issues and that didn't fix the problem. I also completely deleted the contents of my craft/storage/runtime folder to account for the potential download of temp files that could be confusing the local site and that didn't fix it either.

The local site is running in dev mode and there is no error that shows on any of the admin pages, just a 404.

Any idea what's going on here and possible fixes?


  • Is it a Craft-styled 404 page? Did you also download the .htaccess file in the public HTML folder? – Brad Bell Oct 29 '15 at 16:42
  • The 404 has the same formatting as the 404 page from our prod site so it is not an Apache 404 at least. The .htaccess file does exist in the public folder. I've tried both the version from the prod site and the original version that comes with the Craft install and it gives the same result. – dpayne Oct 29 '15 at 17:07
  • What if you go to yourdomain.com/index.php?p=admin? – Brad Bell Oct 29 '15 at 17:44
  • I still get the 404 page. – dpayne Oct 29 '15 at 17:56
  • One other note on the 404 page that I just noticed. When I remove the .htaccess from my /public folder, and I attempt to access any non-admin page URL, I get an apache 404. However, accessing any admin page serves a non-apache 404 (the same one as from the prod site). Hope that is helpful background. – dpayne Oct 30 '15 at 23:06

Goodness, I figured out what was going on here. The cpTrigger had been changed from admin to a different name in the craft/config/general file. [Facepalm]

  • I'm having this problem, but cpTrigger is set to admin, as it should be. – BBaysinger Mar 7 at 17:05
  • @BBaysinger, I was in the same boat. I posted my solution on this issue – Andrea Hall Mar 8 at 15:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.