0

After copying and moving my site to a staging.domain.com spot on the same server. The frontend works but all of my secure pages (admin, login, checkout etc) pages return an Nginx 404. I've made an exact copy of my live environment and imported the database, and of course changed the base urls.

What am I missing here?

1

Most likely a .htaccess misconfiguration. Some redirects may also reside in the server configuration. Maybe there are wildcard-redirects for "admin" and similar. If you simply copied the mage-directory make sure that your NGINX likes and uses .htaccess.

I guess you deleted your Magento-cache?

  • I've deleted my caches every time I've made a change. This is my htaccess: – magin Feb 8 '16 at 16:10
  • .htaccess contents have not been parsed. try wrapping it in <pre></pre> -code or use backticks. – rob_st Feb 8 '16 at 16:40

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.