cancel
Showing results for 
Search instead for 
Did you mean: 

Repeated admin page 404

Repeated admin page 404

Hi all,

 

Every few hours my admin page starts to respond with a 404.

Clearing the cache makes it start working again, but then a few hours later it'll 404 again until I clear the cache yet again. 
This all started when I changed the base URL using 'setup:store-config:set --base-url' 

Any suggestions on what to check? 

  • Magento CE 2.4.6
  • Rewrites are configured and working fine for all other pages
  • I tried picking a new admin dir using --backend-frontname (app/etc/env.php shows correct URL)
  • "custom admin URL" and "custom admin path" are both set to "No" in admin configuration 
  • No errors logged anywhere (PHP error log, magento system.log, magento exception.log)
  • Base URLs match as expected in core_config_data in the DB
  • No other admin URL settings found in core_config_data in the DB

 

This is driving me crazy. There are plenty of guides out there about how to deal with admin 404 issues but I can't find to seem anyone with repeated issues like myself.

 

Thanks!