Skip to main content

subdomain to /home/username/public_html/folder/index

Comments

5 comments

  • cPRex Jurassic Moderator
    Hey there! The easiest way to do that would be with a redirect:
    0
  • Jim Dorrance
    I tried : sub.domain.com redirects to www.domain.com is used, a list of available site is presented, and on a click, that site is opened using code that is in Comman, one level up from the site specific data. I want to have the possibility to access a specific site without passing by the list at domain.com
    0
  • Jim Dorrance
    Each site in public_html is contained in it's own folder:
    Name Size Last Modified Type Permissions
    __MACOSX 4 KB Apr 19, 2021, 5:58 PM httpd/unix-directory 0755
    Book 4 KB Apr 19, 2021, 11:00 PM httpd/unix-directory 0757
    Chris 4 KB Apr 19, 2021, 5:59 PM httpd/unix-directory 0755
    Comman 4 KB Feb 9, 2021, 3:49 PM httpd/unix-directory 0755
    Nu 4 KB Dec 21, 2020, 9:36 AM httpd/unix-directory 0777
    Photo 4 KB Apr 19, 2021, 10:59 PM httpd/unix-directory 0755
    error_log 7.23 KB Today, 9:15 PM text/x-generic 0644
    index.php
    0
  • Jim Dorrance
    And inside Book:
    Name Size Last Modified Type Permissions
    _Data 4 KB Apr 4, 2021, 4:46 PM httpd/unix-directory 0757
    _Images 4 KB Jan 15, 2021, 11:04 AM httpd/unix-directory 0757
    _configuration.php 1.22 KB Apr 18, 2021, 3:48 PM text/x-generic 0646
    index.php
    0
  • cPRex Jurassic Moderator
    When you say the redirect didn't work, did you receive any errors? If so, you may need to speak with your hosting provider to see if there is anything useful inside the Apache logs on the machine.
    0

Please sign in to leave a comment.