The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Dynamic Sub domain

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #27640

    Hello Guys,
    I need your help…
    in my project i need to create sub-domain dynamically with php…
    like if we make new blog so it will be on sub-domain like (

    i hope you all understand what i need.
    i don’t know how to do it?
    can anyone assist me in that.

    It’s urgent..



    Hi rob Thanks for your reply
    but is there any other idea or reference

    Member (and most WPMU installations), if I’m not mistaken, employ wildcard DNS settings. Unfortunately, wildcard dns can cause some issues if not implemented correctly, the most common being the server mistaking a real directory for a dynamic one. If this isn’t a problem (it wasn’t for me), you generally contact your host (or if you’re on a private server with apache, edit your httpd.conf and add * IN A <ip.address> with your information.

    Then do a .htaccess redirect as normal, this time allowing for a dynamic subdomain. As an example, here’s the one I used for one of my projects:

    RewriteCond %{HTTP_HOST} ^([^.]+)$ [NC]
    RewriteCond %1 !^(www|ftp|mail|admin|mysql)$ [NC]
    RewriteRule ^.*$ index.php?c=usercp&m=viewProfile&url=%1 [L]

    That’s about the gist of it (Dreamhost set up the wildcard dns, so I’m sorry I couldn’t be more help there, but a google search on the subject should do the trick) and good luck with your project.


    Thanks for your replay

    But my site is hosted on ixwebhosting company
    and i am using php and my web server is IIS 6.0

    and it doesn’t support Rewrite module support :(

    What should i do?
    should i transfer my web site on linux server.


Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Back End’ is closed to new topics and replies.