I want to cloak my affiliate links and followed the guide on Yoast.com.
And to make the affiliate URLs look nicer (e.g. from https://example.com/go/?id=product-name to https://example.com/go/product-name) they shared the following lines for the .htaccess file:
RewriteRule ^index\.php$ - [L]
RewriteRule (.*) ./index.php?id=$1 [L]
But this isn't working and it will show an 404 error when I open the home page or any other page of my site.
My website is a static HTML site hosted on a shared hosting plan on A2 Hosting (LiteSpeed).