WordPress is the world’s most popular Content Management System (CMS). During installation on Apache-based web servers, it generates a configuration file named .htaccess that configures rewrite rules and access permissions for the Linux filesystem.
When tweaking server settings or security rules, a single typo or an accidentally deleted character can bring down the entire site with an HTTP 500 error (see “8 Solutions to Fix and Repair WordPress HTTP 500 Internal Server Error”). In such situations, the standard troubleshooting procedure is to restore .htaccess back to its pristine default state before debugging further.
Below is the official default WordPress .htaccess configuration. Any standard single-site WordPress installation can use this rule set. Simply replace the entire contents of .htaccess in your WordPress root directory with the code below:
Official Default WordPress .htaccess Syntax
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END Mountos's WordPressSupport Independent Perspectives & In-Depth Insights
Every thoughtful analysis and candid critique comes from our dedication to truth and quality. We choose not to follow sensational algorithms or clickbait headlines.
Sustaining independent research requires reader support. Make a one-time or monthly contribution, securely processed by Google.
Payments secured by Google · Manage or cancel anytime in your Google Account



Comments