how to setup domains pointing to username like or tumblr

Discussion in 'HOWTO-Related Questions' started by Rajesh patel, Dec 1, 2015.

  1. Rajesh patel

    Rajesh patel New Member


    I really like ispconfig , its awesome :)
    I working with cpanel and subdomain since many years now. but I am new to DNs and all stuffs.

    MY Question is :
    How to setup domains pointing to username like or tumblr and wordpress.
    i.e If you go to , They can assign custom domain to this USERNAME .Does nirajmehdiratta Is directory or subdomain ?
    OR if you go to , they have subdomain in tumblr, engineering is subdomain.
    do they created directory named engineering ?
    So how do they manage useraccount as subdomain/directory . Is it different site?
    Can any guide me on this please ?

    I am using amazon aws ec2 instances, we should have route53 service. We also store all files on aws S3

    I want to achieve same thing.
    My main domain is ,
    my user will register free service and they will be acceess via username e.g , this users video goes to and contact form goes to
    Now If user will pay premium money, they can assign domain, so let say , they want to convert to this is registered by my use.

    Now when other users search for user : myusername they can see and

    Can anyone help me with this please, My most of development is ready but now we wanted to assign domain names.
    This is very urgent please.

    Thanks you for your help. much appreciate.

    Also : Can anyone help me to work with me together on this project?
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    That's all handled inside the cms of the website. Just create a new website and install e.g. wordpress in it, the cms (e.g. wordpress in this case) maps the paths virtually for whatever you want, it does not matter if /abcd is a username, a city, a car manufacturer or whatever. Wordpress installs a .htaccess file for this automatically that redirects all incoming requests to index.php so that it is able to react on the different url's.
  3. Rajesh patel

    Rajesh patel New Member

    till, Thanks for the reply. Can you tell me how to map paths virtually ?
    I am creating similar site to tumblr and
    so how they manage different themes and different plugins for each user. also user can assign custom domain
    Can you please give me hint on this ? How do they manage those stuffs ?

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    For PHP scripts: take a look at the global variable $_SERVER['REQUEST_URI'], split this by "/" and you get all path parts and can act according to that info.

    and you need a .htaccess file similar to the one that wordpress uses to redirect all incoming requests to your php file, e.g. index.php

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
  5. Rajesh patel

    Rajesh patel New Member

    Alright I will try and let you know.

Share This Page