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

Jim Dorrance

Registered
Jan 15, 2016
4
0
51
Oaris
cPanel Access Level
Website Owner
I tried :
sub.domain.com redirects to http://domain.com/public_html/Book/index.php and it does not work.

Why do I want this?

public_html/ contains a folder: Comman with all php code, and several photo sites: book, family, portfolio...etc.
When 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
 
Last edited by a moderator:

Jim Dorrance

Registered
Jan 15, 2016
4
0
51
Oaris
cPanel Access Level
Website Owner
Each site in public_html is contained in it's own folder:

NameSizeLast ModifiedTypePermissions
__MACOSX4 KBApr 19, 2021, 5:58 PMhttpd/unix-directory0755
Book4 KBApr 19, 2021, 11:00 PMhttpd/unix-directory0757
Chris4 KBApr 19, 2021, 5:59 PMhttpd/unix-directory0755
Comman4 KBFeb 9, 2021, 3:49 PMhttpd/unix-directory0755
Nu4 KBDec 21, 2020, 9:36 AMhttpd/unix-directory0777
Photo4 KBApr 19, 2021, 10:59 PMhttpd/unix-directory0755
error_log7.23 KBToday, 9:15 PMtext/x-generic0644
index.php
 

Jim Dorrance

Registered
Jan 15, 2016
4
0
51
Oaris
cPanel Access Level
Website Owner
And inside Book:

NameSizeLast ModifiedTypePermissions
_Data4 KBApr 4, 2021, 4:46 PMhttpd/unix-directory0757
_Images4 KBJan 15, 2021, 11:04 AMhttpd/unix-directory0757
_configuration.php1.22 KBApr 18, 2021, 3:48 PMtext/x-generic0646
index.php