CP url (/admin) returning a 404 on production #15089
-
Hey Guys, Quick question. Been building a new website, which works like a charm locally, however, as soon as I pull the repo to the production environment, the
.htaccess looks as follows:
One thing that I noticed is that the Any clues on where to start looking? Thanks much |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I see you mentioned the 404 comes from Nginx but then mentioned you're using .htaccess which is used for Apache. Could you double check what server you're using? If your site is running on Nginx then you'll want to setup a conf file (not .htacces, you may need to reach out to your host depending on how flexible they are), here are a couple samples: |
Beta Was this translation helpful? Give feedback.
hi @dolphiq-allard
I see you mentioned the 404 comes from Nginx but then mentioned you're using .htaccess which is used for Apache.
Could you double check what server you're using?
If your site is running on Nginx then you'll want to setup a conf file (not .htacces, you may need to reach out to your host depending on how flexible they are), here are a couple samples:
https://craftcms.stackexchange.com/questions/961/what-is-the-recommended-nginx-configuration-for-craft