how to create a virtual or a dynamic subdomain.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    how to create a virtual or a dynamic subdomain.

    hello,this tutorials will show you how to create a virtual or psudo subdomain.

    login to cpanel
    Go to create subdomain
    When asked the subdomain name,put this '*'
    so your subdomain name will be *.domain.com
    after just test it by typing anything like eg. hdshba.domain.com ,just change anything.
    finish
    Wink

    #2
    Originally posted by razzbee View Post
    hello,this tutorials will show you how to create a virtual or psudo subdomain.

    login to cpanel
    Go to create subdomain
    When asked the subdomain name,put this '*'
    so your subdomain name will be *.domain.com
    after just test it by typing anything like eg. hdshba.domain.com ,just change anything.
    finish
    Wink
    Very Gooood , nice tutorial , i'll use it, tnx

    Comment


      #3
      if i want> domain.com/?abc=xyz
      to be> xyz.domain.com
      then? Do i need wildcard or something?

      Comment


        #4
        Originally posted by iBeyond View Post
        if i want> domain.com/?abc=xyz
        to be> xyz.domain.com
        then? Do i need wildcard or something?
        You should create a subdomain with * name, then you should create a folder and assign name such as Test then you can access by http://test.host.com.
        According Post #1

        Comment


          #5
          Originally posted by iBeyond View Post
          if i want> domain.com/?abc=xyz
          to be> xyz.domain.com
          then? Do i need wildcard or something?
          Yes U need wildcard subdomains....I remember once I used..U try this Bro.But i'm not 100% sure with this..

          PHP Code:
           RewriteEngine On

          # Extract the subdomain part of domain.com
          RewriteCond %{HTTP_HOST} ^([^\.]+)\.sri-wap\.net$ [NC]

          # Check that the subdomain part is not www and ftp and mail
          RewriteCond %!^(www|ftp|mail)$ [NC]

          # Redirect all requests to a php script passing as argument the subdomain
          RewriteRule ^.*$ http://www.domain.com?abc=%1 [R,L] 
          You better try this....

          P.S. Original work is not mine and I do not remember Where I got this.


          I'm Proud to be a Sri Lankan!

          Comment


            #6
            Thanks a lot
            definately i'll try it...
            & i'm still stupid @ mod_rewrite.
            any good online tutorial?? (will google it)
            but if you want suggest any good site, advance thanks ^^

            Comment

            Working...
            X