I accidentally broke my .htaccess file. How to fix it?
If your site is completely down: use FTP to replace the .htaccess file. PrestaShop can regenerate it: go to Shop Parameters → Traffic & SEO and click "Generate .htaccess file". If you cannot access the admin: rename the broken .htaccess to .htaccess_backup, create a minimal .htaccess file, access the admin panel, and regenerate the proper one. The minimal file just needs RewriteEngine On and RewriteBase / (adjust the base path as needed).
Learn more: our troubleshooting guide.
Was this answer helpful?
Still have questions?
Can't find what you're looking for? Send us your question and we'll get back to you quickly.