Redirect/rewrite dynamic URL to sub-domain and create DNS for subdomain
- by Abdul Majeed
I have created an application in PHP, I would like to re-direct the following URL to corresponding sub-domain.
Dynamic URL pattern:
http://mydomain.com/mypage.php?user_name=testuser
I wish to re-direct this to the corresponding sub domain:
http://testuser.mydomain.com/
How do I create a rewrite rule for this purpose?
How do I register DNS…