www.webdeveloper.com
Results 1 to 7 of 7

Thread: How to create Sub Domain with .htaccess

  1. #1
    Join Date
    Dec 2009
    Posts
    86

    How to create Sub Domain with .htaccess

    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

  2. #2

    http://www.newskycars.com

    If some developer use attractive contents in the web development then it will be better for that developer

    http://www.newskycars.com

  3. #3
    if there is anybody interested in the development then i appreciate those guys
    http://www.newskycars.com

  4. #4
    Join Date
    Dec 2009
    Posts
    86

  5. #5
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Sounds like you're for subdomain redirect

  6. #6
    Join Date
    Sep 2008
    Posts
    408
    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).

  7. #7
    Join Date
    Jun 2008
    Posts
    64
    Quote Originally Posted by Shorts View Post
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles