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?
Answers
Morten Rasmussen
1 month ago
Rating
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:
To fix this, modify the rule like this:
This way, you'll still block access to potentially dangerous files but allow access to .php files essential for WordPress.
Alessandro Gallo
1 month ago
Rating
The problem is with this part of the .htaccess:
The line Deny from all is blocking access.
You can change it to Allow from all like this:
This should allow access.