how to make automatic subdomain script

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

    how to make automatic subdomain script

    how to make a php script which makes automatic subdomain like username.sitename.com to redirect to sitename.com/index.php?username=$username in a unix cpanel 2 server
    Last edited by charith7788; 15.05.13, 18:42.

    #2
    I think this is done with wildcard domains and mod_rewrite in .htaccess

    Comment


      #3
      Originally posted by laro696 View Post
      I think this is done with wildcard domains and mod_rewrite in .htaccess
      i would like to know how to edit .htaccess pleas give me any simple example

      Added after 13 minutes:

      Originally posted by laro696 View Post
      I think this is done with wildcard domains and mod_rewrite in .htaccess
      hey thanks bro i have found the answers on google by your tips.
      Last edited by charith7788; 16.05.13, 06:38.

      Comment


        #4
        Originally posted by laro696 View Post
        I think this is done with wildcard domains and mod_rewrite in .htaccess
        Yes this will done with .htaccess i w=done this but i lost the file i do this for a client i will share the code when i found

        Comment

        Working...
        X