# 404 on wp/wp-admin, all other rewrites work fine?

**URL:** https://discourse.roots.io/t/404-on-wp-wp-admin-all-other-rewrites-work-fine/8942
**Category:** bedrock
**Created:** 2017-02-28T10:43:45Z
**Posts:** 3

## Post 1 by @tom-huddle — 2017-02-28T10:43:45Z

I’ve just deployed a bedrock installation to our web server, and have a weird problem.

In my .htaccess I have this (standard Wordpress .htaccess):

`<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>`

In my .env I have this:

`WP_ENV=production WP_HOME=http://huddledigital.website WP_SITEURL=http://huddledigital.website/wp`

When I go to `/about-us` for example, the .htaccess routing works and I get the page. When I go to `/wp/readme.html` I can see the read me fine. When I go to `/wp/wp-login` or `/wp/wp-admin` I get a 404 error.

Any ideas?

---

## Post 2 by @apmarshall — 2017-02-28T15:08:09Z

Just had a similar experience, couldn’t figure out for the life of me why my admin/login was broken but everything else worked. Enlisted help from hosting technical support wondering if it was something they could see but I couldn’t, and they pointed out that I had the `FORCE_SSL_ADMIN` constant set to true, but since it was a staging server hadn’t set up an SSL certificate yet. That may not be your issue, but I’d check that first, as it’s a very easy fix (just change constant to “false”).

---

## Post 3 by @tom-huddle — 2017-02-28T16:09:20Z

Thanks for your reply - this didn’t work for me though.

The admin URL works on my local machine with all of the same code / constant values.

I contacted my hosting company and it turns out the permissions were incorrect on my `web` directory. I had `755` with the owner being `cpaneluser:cpaneluser`, when I needed `750` with the owner being `cpaneluser:nobody`. My web host was able to change this for me.

I think it happened when I removed the existing public\_html and set up a new symlink.
