Unable to Access Links Inside WP-admin
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
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.
Alessandro Gallo
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.