I needed to redirect example.com/var1/var2/var3/...
to
example.com/index.php?myvars=var1/var2/var3/...
This is the code I wrote myself:
RewriteEngine On
RewriteCond %{REQUEST_URI} !=/index.php
RewriteRule ^(.*)$ index.php?myvars=$1 [L,QSA]
I really want to understand why this does not work, and what solution would work. I need help from you guys, not just to make it work, but to help me understand. When I try my code, it keeps running forever and the page does not load. I don't know why, because I did not copy this code, I studied regex and htaccess to learn, but it did not work.