Welcome to Welcome to DNF.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars

If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.

Register Today on DNForum IT'S FREE!

Results 1 to 2 of 2
  1. #1
    Platinum Lifetime Member

    Join Date
    Aug 2004
    Posts
    93
    DNF$
    1,273
    Bank
    0
    Total DNF$
    1,273
    Donate  

    Automated subdomain creator

    I just need my server to read my folders as subdomains Example: I have http://mydomain.com/file I would like my server to display this url as http://file.mydomain.com. I have cpanel and I know how to create subdomains in cpanel but I need to have it done instantly and for multiple folders. I have wildcarded my dns but I know there is something else I have to do with the server. If anyone can explain it to me I would appreciate it.

  2. #2
    DNF Addict
    Mr.Domains's Avatar
    Join Date
    Sep 2004
    Location
    Geneva, Switz.
    Posts
    1,868
    Country

    Great Britain
    DNF$
    3,238
    Bank
    6,090
    Total DNF$
    9,328
    Donate  

    Re: Automated subdomain creator

    I'm not really the expert, but I believe that you can do this very simply (on an Apache server anyway) using .htaccess and the "mod_rewrite" module. Create a blank .htaccess file, then put something like:
    RewriteEngine on
    RewriteRule ^http://[.+].YOURDOMAIN.com http://www.YOURDOMAIN.com/$1
    My syntax is probably not correct, but that's that basic idea, do a bit of research into mod_rewrite, it is a very useful tool for SEO!
    Neil Hillman - Web Developer, Pixel Pusher...

Bookmarks

Posting Permissions

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

Domain name forum recommended by Domaining.com