Unable to Access Links Inside WP-admin (Edited)

After installing WordPress, I can’t access links within the admin panel — when I try to open any page, I get a “Page Not Found” error. Initially, the CSS wasn’t loading, but after adding this line:

		
define( 'CONCATENATE_SCRIPTS', false ); the CSS started displaying correctly, yet the issue with accessing the admin panel remains.

Here’s the content of my .htaccess file:
		
RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L] Order Allow,Deny Deny from all Order Allow,Deny Allow from all

How can I fix this issue?

Vincent Dupont

1 month ago

2 answers

92 views

Rating

05
Answer

Answers

Morten Rasmussen

1 month ago

Edited

Rating

00

Allowing access to everything might not be the best idea.

The rule below is denying access to all .php files, including those necessary for the WordPress admin panel to function:

		
Order Allow,Deny Deny from all

To fix this, modify the rule like this:

		
Order Allow,Deny Deny from all

This way, you'll still block access to potentially dangerous files but allow access to .php files essential for WordPress.

Reply

Alessandro Gallo

1 month ago

Edited

Rating

00

The problem is with this part of the .htaccess:

		
Order Allow,Deny Deny from all

The line Deny from all is blocking access.

You can change it to Allow from all like this:

		
Order Allow,Deny Allow from all

This should allow access.

Reply