The web server is Apache. I want to rewrite URL so a user won't know the actual directory. For example: The original URL:
www.mydomainname.com/en/piecework/piecework.php?piecework_id=11
Expected URL:
piecework.mydomainname.com/en/11
How to achieve it with mod_rewrite?