Home RewriteRule in .htaccess file not working
Reply: 0

RewriteRule in .htaccess file not working

user665 Published in June 19, 2018, 6:27 pm

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:

<IfModule mod_rewrite.c>
RewriteEngine On
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).

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.302951 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO