Default WordPress .htaccess file in case you messed up your WP site

When you installed your WordPress installation in example.com/wordpress/, you should use the following .htaccess file RewriteEngine On RewriteBase /wordpress/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wordpress/index.php [L] In case you installed it in the root of your domain, so that would be example.com/ RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d […]