A .htaccess hack involves unauthorized access to your website’s .htaccess file, often leading to website redirects or display of unwanted content. To fix it, access your website files via FTP, locate the .htaccess file, and remove any suspicious code. Replace it with a clean version or update your website’s core files if necessary.