After moving to new a server the admin url gives 404 error on multisite Magento 2.3.4 ,with domains new.example.com and new.20example.com
The frontend works perfectly for both sites
When I go to the admin path using new.example.com I get 404 error with or without index.php in the url.
If I change the domain part of the url to the new.20example.com it changes the domain part to new.example.com but includes the additional path that usually gets tacked on i.e. admin/index/index/key/(alphanumeric code)
This also gives a 404 error. If I can force it to maintain new.20example.com in the url it should connect.
Any suggestions would be greatly appreciated.
I have done the following:
It really looks great, I've seen many other posts, that's the info I needed, thanks for sharing.
Every find a solution? We're experiencing the same problem.
Hello theawesome10e8,
It is a common error that Magento users face after installing their Magento site, even if the installation is successful: 404 Not Found on the multi-site admin page. The error usually occurs after moving to a new server or installing & upgrading extensions.
You can follow the below steps to fix the Admin 404 error on your site,
Re-check your admin URL in env.php:
The error can appear If you have mistyped your admin URL. First, ensure that you have the admin URL correct,
Flush Magento cache:
php bin/magento cache:clean rm -rf var/cache/* rm -rf var/generation/*
Add/replace .htaccess file in the root folder:
RewriteEngine on RewriteCond %{REQUEST_URI} !^/pub/ RewriteCond %{REQUEST_URI} !^/setup/ RewriteCond %{REQUEST_URI} !^/update/ RewriteCond %{REQUEST_URI} !^/dev/ RewriteRule .* /pub/$0 [L] DirectoryIndex index.php
Delete var/cache folder:
SELECT * FROM core_config_data When path = 'web/seo/use_rewrites'
https://your_magent_base_url/index.php/your_admin_url/
Thus, you should try the steps mentioned above to fix the issue of your Magento site. I hope the above methods help you to resolve the error.
-------------------------
Regards,
Rex M
AccuWeb Hosting | Magento Hosting