How to create dynamic Subdomain in .htaccess file?
Can any one help me how to write Rewrite Rule for it ?
when user open www.example.com then open index.php
if user open www.username.example.com then open profile.php (with user name record)
Thanks
Printable View
How to create dynamic Subdomain in .htaccess file?
Can any one help me how to write Rewrite Rule for it ?
when user open www.example.com then open index.php
if user open www.username.example.com then open profile.php (with user name record)
Thanks
If some developer use attractive contents in the web development then it will be better for that developer
http://www.newskycars.com:cool:
if there is anybody interested in the development then i appreciate those guys
http://www.newskycars.com
:(
Sounds like you're for subdomain redirect
Also, you'll need a DNS wildcard A record for a catch-all domain, *.domain.com as well as edit httpd.conf to have a ServerAlias *.domain.com (assuming you are on apache).
I'm trying to do this now so I can run drupal on multiple subdomains.
However, I'm a newbie.
Is the DNS Wildcard an A Record? or a CNAME record?
I use godaddy, here is a screen shot of their Total DNS Wizard. Is the first - the Wildcard DNS (with asterisk)? Thanks.
http://www.cosmicbooknews.com/images/totaldns.jpg