I have two type domaintypes of URL and want to rewrite it for friendly URL.
1. The first:
https: //mydomain.ltd/folder/myfile.php?id=xx¶m1=yy
https://example.com/folder/myfile.php?id=xx¶m1=yy
I want itto rewrite to:
https: //mydomain.ltd/folder/myfile/xx/yy
https://example.com/folder/myfile/xx/yy
2. The secondssecond:
https: //mydomain.ltd/folder1/myfile.php?id=xx¶m1=yy
https://example.com/another-folder/myfile.php?id=xx¶m1=yy
I want it rewrite to:
https: //mydomain.ltd/myfile/xx/yy
https://example.com/myfile/xx/yy
Please help me how to do it. I've searched from google but I do not understand the principle rewrite. Thank you verymuch! Please help me how to do it. I've searched Google but I do not understand the principle rewrite.