Redirect/rewrite dynamic URL to sub-domain and create DNS for subdomain
Posted
by
Abdul Majeed
on Pro Webmasters
See other posts from Pro Webmasters
or by Abdul Majeed
Published on 2011-10-27T09:11:51Z
Indexed on
2012/04/06
11:42 UTC
Read the original article
Hit count: 463
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 for sub-domain without using CPANEL? (I want to activate sub-domain when the user registers to the system.)
© Pro Webmasters or respective owner