add domain to subfolder of exist domain

Discussion in 'General' started by raczkowski1, May 24, 2014.

  1. raczkowski1

    raczkowski1 New Member

    Hi
    I have some domain ex. example.com which path is /var/www/clients/client1/web1/web
    and I want add subdomain to subfolder ex. pr.example.com -> /var/www/clients/client1/web1/web/pr

    Redirect is working but add 'pr' at the end (pr.example.com/pr)
    Would be better to add additional vhost with url pr.example.com -> /var/www/clients/client1/web1/web/pr

    How should I configure it?

    Thanks
     
  2. raczkowski1

    raczkowski1 New Member

    I find solution. I use redirection type 'L' and in htaccess in subfolder (CMS Joomla) un-commented 'rewrite /'.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Or use the vhost subdomain function in ispconfig.
     

Share This Page