As the title says, my site is returning a 404 error whenever I try to access wp-admin. If i type out the full url (http://mysite.com/wp/wp-admin) it works, but this really needs to redirect on its own exactly as it does in my dev environment. My server is running Apache 2.4.6 on CentOS 7. My vhost config for my site is
<VirtualHost *:80>
ServerName www.mysite.com
ServerAlias mysite.com
DocumentRoot /var/www/mysite.com/web
<Directory /var/www/mysite.com/web>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
</Directory>
CustomLog /var/log/httpd/mysite.com-access.log combined
ErrorLog /var/log/httpd/mysite.com-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
</VirtualHost>
My .env file is as follows
DB_NAME=mysite_db
DB_USER=mysite_user
DB_PASSWORD=superSecretPassword
DB_HOST=localhost
WP_ENV=production
WP_HOME=http://mysite.com
WP_SITEURL=${WP_HOME}/wp
# Generate your keys here: https://roots.io/salts.html
...
I am honestly not sure if this is an Apache issue or a Bedrock issue, but my vagrant box matches my production environment almost perfectly, the exception being I’m running Ubuntu 16.04 as opposed to CentOS 7. I’ve been reading about this all weekend and I can’t seem to find the problem. Thank you in advance!