<p>Typing &quot;/admin&quot; on local or remote server yields a server generated 403 forbidden error. Fortunately I can still login to the Craft 4 admin if I type &quot;/admin/login&quot;.</p>
<p>What I've checked/tested:</p>
<ul>
<li>cpTrigger: config/general.php shows 'cpTrigger' =&gt; App::env('CP_TRIGGER') ?: 'admin',</li>
<li>cleared cookies</li>
<li>disabled non-essential plugins</li>
</ul>

CC BY-SA 4.0
2023-09-22T18:27:39.417Z
Have you checked the user permissions for the user you're trying to login as? It's possible something is unchecked in the list that shouldn't be.
cherrykoda
CC BY-SA 4.0
2023-09-22T21:56:44.677Z
Thanks @cherrykoda - This is a Solo version so there's no user permission settings - just admin.
Jason McKinney
CC BY-SA 4.0
2023-09-27T04:17:41.563Z
Thanks for replying! Next step - if you set that general.config setting to 'cpTrigger' => 'admin' does it behave the same way? This will narrow down if its an env problem or a system one.
cherrykoda
CC BY-SA 4.0
2023-09-28T15:50:57.617Z
Yes @cherrykoda , when I simplify the config file setting using your suggestion above, the behavior is the same.
Jason McKinney
<admin>
Admin 403 error: cpTrigger no longer working properly
# Admin 403 error: cpTrigger no longer working properly

(Asked by: username_0 on 2023-09-14)

Typing "/admin" on local or remote server yields a server generated 403 forbidden error. Fortunately I can still login to the Craft 4 admin if I type "/admin/login".

What I've checked/tested:

* cpTrigger: config/general.php shows 'cpTrigger' => App::env('CP\_TRIGGER') ?: 'admin',
* cleared cookies
* disabled non-essential plugins

**Tags:** admin
> **Comments:**
> **username_1**: Have you checked the user permissions for the user you're trying to login as? It's possible something is unchecked in the list that shouldn't be.  
> **username_0**: Thanks @cherrykoda - This is a Solo version so there's no user permission settings - just admin.  
> **username_1**: Thanks for replying! Next step - if you set that general.config setting to 'cpTrigger' => 'admin' does it behave the same way? This will narrow down if its an env problem or a system one.  
> **username_0**: Yes @cherrykoda , when I simplify the config file setting using your suggestion above, the behavior is the same.  

---

## 0 answers

