Wilcard Subdomain

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

  • Quintin
    replied
    Originally posted by marduck View Post
    I use scripts lavalair
    and I've settng dns cpanel on my webhost manager
    saya dudah membuat .htaccess
    Code:
    RewriteEngine On
    RewriteRule ^([^/]+).html profile.php?user=$1 [NC]

    after I tried to call username.mydomain.com
    There is no website configured at this address.
    please explain more detailed steps to lavalair / webdesire scripts
    I use wildcard dns on my site, and my coding is as i want it, code my own script, but i can't seem to get my .htaccess file right to rewrite as username.html my script is http://user.site.com/sites/index.php?name=username

    when you want to access the site, you just type into your browser, user.sitename.com then it redirects to the above adress.
    Last edited by Quintin; 09.01.10, 06:31. Reason: added txt

    Leave a comment:


  • marduck
    replied
    Originally posted by cs.spot123 View Post
    Create a file ..
    Code:
    profile.php?user=admin
    in profile.php..
    Code:
    $user = $_GET[user']
    for my_sql_query .. For name = $user
    fetch querys from ibwf_users
    user shout counts, snaps, scraps etc..

    Now try viewing : profile.php?user=admin

    If it works fine..

    Now go to .htaccess
    and use following code..

    Code:
    RewriteEngine On
    RewriteRule ^([^/]+).html profile.php?user=$1 [NC]
    So
    profile.php?user=admin becomes sitename.com/admin.html

    Similarly u can even have admin.sitename.com
    for that enable wild card...


    Go to cpanel.. -> Subdomain options.. Create a new subdomain
    using "*" (Star) .. * stands for wild card.

    and edit htaccess ;-)
    Hope it helps
    I use scripts lavalair
    and I've settng dns cpanel on my webhost manager
    saya dudah membuat .htaccess
    Code:
    RewriteEngine On
    RewriteRule ^([^/]+).html profile.php?user=$1 [NC]

    after I tried to call username.mydomain.com
    There is no website configured at this address.
    please explain more detailed steps to lavalair / webdesire scripts
    Last edited by marduck; 08.01.10, 12:24.

    Leave a comment:


  • GiLL
    replied
    look this is best wild card dns setting if you have dedicate server or your server administer can do it for you
    and you don't need put any thing in .htaccess file as well as you don't need even rewrite rules just put few code in your index which will check user in data base and send him on valid place do everything it self

    Setting up Wildcard DNS for Subdomains on Cpanel
    Last edited by GiLL; 06.01.10, 03:50.

    Leave a comment:


  • ori
    replied
    if u have (master) reseller with root access or dedicated u can enable wildcards with no script code required

    Leave a comment:


  • cs.spot123
    replied
    Create a file ..
    Code:
    profile.php?user=admin
    in profile.php..
    Code:
    $user = $_GET[user']
    for my_sql_query .. For name = $user
    fetch querys from ibwf_users
    user shout counts, snaps, scraps etc..

    Now try viewing : profile.php?user=admin

    If it works fine..

    Now go to .htaccess
    and use following code..

    Code:
    RewriteEngine On
    RewriteRule ^([^/]+).html profile.php?user=$1 [NC]
    So
    profile.php?user=admin becomes sitename.com/admin.html

    Similarly u can even have admin.sitename.com
    for that enable wild card...


    Go to cpanel.. -> Subdomain options.. Create a new subdomain
    using "*" (Star) .. * stands for wild card.

    and edit htaccess ;-)
    Hope it helps

    Leave a comment:


  • marduck
    started a topic Wilcard Subdomain

    Wilcard Subdomain

    how to create a subdomain with wilcard for lavalair scripts, such as in twiter example, users will have their own subdomain
    I've done it like a proper setting wordpresMU, but always failed, is it possible to have extra files in the index.php?
    Last edited by marduck; 05.01.10, 16:40.
Working...
X