Home  »  CodeProgrammingSnippetsTechnology   »   Default .htaccess File for WordPress

Default .htaccess File for WordPress

Posted: December 9, 2022 | by Michael Bright

The snippet below contains the default .htaccess file rules for WordPress in single site mode.

# 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 WordPress

Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.