I'm trying to rewrite a url from the website that I made but I'm not an expert using .htaccess. Basically I'm trying to do this:
Localhost test environment ( WAMP ):
http://127.0.0.1/project/index.php?p=home&l=en
into this:
http://127.0.0.1/project/en/home/
I made something like this but I know it is not correct:
RewriteEngine on
RewriteRule ^$2/$1/$ /index.php?p=$1&l=$2 [L]
What's the correct way to achieve this?