These steps explain what to do if a WordPress dashboard is displaying as just a static HTML page or with broken formatting, with no CSS or scripts running, just static HTML. A Deny in the .htaccess file is the likely culprit.
Related Articles
Log into WordPress Dashboard
Unlocking WordPress Dashboard when Locked Out by ModSecurity
White Screen/500 HTTP Error on WordPress Website
Removing the .htaccess Deny
- Log into the appropriate cPanel
- Access the Document Root of the site
- Look for a .htaccess file in the document root of the website, as well as in the wp-admin folder
TIP: If .htaccess is not present, show hidden files in File Manager. - Check .htaccess for the following rule:
<FilesMatch ".*\.(phtml|php)$"> Order Allow,Deny Deny from all </FilesMatch>
- If the Deny rule is present, comment out its lines using
#
, or rename the .htaccess file
EXAMPLE:
# <FilesMatch ".*\.(phtml|php)$">
# Order Allow,Deny
# Deny from all
# </FilesMatch> - Log in once again to the site's wp-admin/dashboard for testing
Comments
0 comments
Article is closed for comments.