suppose you want example #weeddingplans RewriteRule ^weddingplanners$ shop.php?sub=31&id=7 [L,S] RewriteCond %{REQUEST_URI} /shop.php [NC] RewriteCond %{QUERY_STRING} ^id=7&sub=31 RewriteRule (.*) http://www.wedstar.gr/weddingplanners? [R=301]
Attention in classroom
suppose you want example #weeddingplans RewriteRule ^weddingplanners$ shop.php?sub=31&id=7 [L,S] RewriteCond %{REQUEST_URI} /shop.php [NC] RewriteCond %{QUERY_STRING} ^id=7&sub=31 RewriteRule (.*) http://www.wedstar.gr/weddingplanners? [R=301]