Default .htaccess file for WordPress

WordPress white screen after moving hosting? You might have a corrupted .htaccess file.

There are many reasons your WordPress installtion could be showing a white screen. In some cases fresh .htacess file in the main directory can fix your WordPress site.

I recommend renaming the old file via FTP or SSH. name it something like old.htaccess, then create a new .htaccess file with the default WP content. Just copy paste and save.
Keep in mind that you’ll need to move any custom blocking or redirection in your old.htaccess.

Default .htaccess

# 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

Leave a Reply

Your email address will not be published. Required fields are marked *

Up Next:

Change WordPress Default Email and Name

Change WordPress Default Email and Name