wp-admin not accessible – The requested URL was not found on this server
-
On AWS instance I’ve installed Ubuntu 22 and then WordPress. I am using subdomain of a registered domain. (Domain was registered for another site running on another instance). I am trying to create a new instance for testing and I am using subdomain of registered domain.
I can access the frontend of my WordPress but not the backend.
When I try to login to my wp-admin backend by typing in browser
https://aws_route_53_subdomain_name.domain_name.com/wp-admin
I get this error
"Not Found" The requested URL was not found on this server. Apache/2.4.52 (Ubuntu) Server at <IP address> Port 80".
I also tried entering
"aws_route_53_subdomain_name.domain_name.com/wordpress/wp-admin",
but the result is the same.
When I hit enter I see the URL changes to something like
"https:///wordpress/wp-login.php?redirect_to=http%3A%2F%2Ftest.%2Fwp-admin%2F&reauth=1".
Can you please help me with this?
I suspect that the issue could be with the fact that I am using subdomain of a first prod instance and pointing it to another (this new) test instance. (I can access the frontend with “mydomainname.com” but not the backend) E.g when I ran
sudo certbot --apache
I got this error
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems: Domain: www.test.mydomainname.com Type: dns Detail: DNS problem: NXDOMAIN looking up A for www.test.mydomainname.com - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for www.test.mydomainname.com - check that a DNS record exists for this domain Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet. Some challenges have failed. Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
- The topic ‘wp-admin not accessible – The requested URL was not found on this server’ is closed to new replies.