skip to Main Content

.htaccess rewrite cond/rule and hide url paremeters – Apache

I got a htaccess in my Root directory. My files path http://example.com/folder1/folder2/index.php?country=eu&lang=en I made this in htaccess. RewriteCond %{HTTP_HOST} ^(www.)?anothersite.com$ RewriteRule ^([^/]*)/([^/]*)$ /folder1/folder2/index.php?country=$1&lang=$2 [L] RewriteRule ^([^/]*)$ /folder1/folder2/index.php [L] And looks like this http://example.com/index.php?country=eu&lang=en But i want like this -> http://example.com/eu-en…

VIEW QUESTION
Back To Top
Search