<p>I'm struggling with a downloaded copy of a clients Craft 3 based website.</p>
<p>I've downloaded the entire project, and have tweaked the .env file and .htaccess for my local mac's setup.</p>
<p>The site itself loads in terms of the front end and can establish a database connection. I can however not reach the admin site(have checked both via /admin/ and via ?p=admin/login). I get a 404 error either way.</p>
<p>Other friendly URLs are working but break if I sabotage the .htaccess file... makes me think the .htaccess is fine.</p>
<p>I've looked in general.php and the <code>cpTrigger</code> is set to admin.</p>
<p>No useful errors are being recorded in storage/logs (although these files are updating). The only errors seem to be about deprecated functions.</p>
<p>Any suggestions on what else to look at?</p>

CC BY-SA 4.0
2021-07-05T18:56:10.677Z
I'm writing this as a comment and not answer because I'm not 100% sure - are there any URL's hardcoded in the database? You can access /admin fine on the actual production URL, I assume?
Cat Named Dog
CC BY-SA 4.0
2021-07-05T22:48:02.973Z
Is it a Craft-styled 404 or a webserver-styled 404?
Brad Bell
CC BY-SA 4.0
2021-07-06T15:20:57.510Z
@BradBell for the /admin requests I'm getting a very plain apache style 404 page. 

For other errors I resolved with the front-end site I was getting the detailed CraftCMS error pages (in development mode).
steve
CC BY-SA 4.0
2021-07-06T15:21:17.740Z
@good_afternoon Not seeing any hardcoded URLs in the database sadly :(
steve
<error><404>
404 accessing the admin site - not rewrite related
# 404 accessing the admin site - not rewrite related

(Asked by: username_0 on 2021-07-05)

I'm struggling with a downloaded copy of a clients Craft 3 based website.

I've downloaded the entire project, and have tweaked the .env file and .htaccess for my local mac's setup.

The site itself loads in terms of the front end and can establish a database connection. I can however not reach the admin site(have checked both via /admin/ and via ?p=admin/login). I get a 404 error either way.

Other friendly URLs are working but break if I sabotage the .htaccess file... makes me think the .htaccess is fine.

I've looked in general.php and the `cpTrigger` is set to admin.

No useful errors are being recorded in storage/logs (although these files are updating). The only errors seem to be about deprecated functions.

Any suggestions on what else to look at?

**Tags:** error, 404
> **Comments:**
> **username_1**: I'm writing this as a comment and not answer because I'm not 100% sure - are there any URL's hardcoded in the database? You can access /admin fine on the actual production URL, I assume?  
> **username_2**: Is it a Craft-styled 404 or a webserver-styled 404?  
> **username_0**: @BradBell for the /admin requests I'm getting a very plain apache style 404 page.   For other errors I resolved with the front-end site I was getting the detailed CraftCMS error pages (in development mode).  
> **username_0**: @good_afternoon Not seeing any hardcoded URLs in the database sadly :(  

---

## 0 answers

