how to create a virtual or a dynamic subdomain.

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

  • iBeyond
    replied
    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 ^^

    Leave a comment:


  • nimeshka
    replied
    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.

    Leave a comment:


  • ba_maram_shiraz
    replied
    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

    Leave a comment:


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

    Leave a comment:


  • ba_maram_shiraz
    replied
    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

    Leave a comment:


  • 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
Working...
X