I was exicted to use the site importing feature in Local by Flywheel (localhost development software for WordPress. It should be as creating a zip of the site and make sure the .sql file in the root directory, of that zip.

Just drag and drop the zip into Local’s window and watch it work! Local installed my WordPress site and told me it was ready to go. Oh no! Error 500 when accessing the site using Local by Flywheel!

Don’t worry, it’s and easy fix. Turns out local can corrupt your .htaccess file. All you need to do is replace the .htaccess with a default WordPress one.

Here is the defaut htaccess for WordPress.

# 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

Now try loading up your imported WordPress site again ?

Happy blogging!