oldbostonchat

Registered
Feb 12, 2010
2
0
51
Okay, I know I'm doing something completely wrong. I loaded my main site into it's folder under public_html . Went to visit my site, and got an index page with all my different sites' folders listed. Clicked on the proper site folder, it listed the pages on an index list, clicked on my welcome page, and finally got to see my site. Everything works from there, but to get to it I'm redirecting my xxxxxxxx.com site to: http://www.xxxxxx.com/xxxxxx.com/Welcome.html <<< DO NOT CLICK THAT, IT'S JUST AN EXAMPLE THAT HYPERLINKED ON ITS OWN!!

Please tell me what I'm doing wrong!!?? I know it's my fault, just not sure what exactly I did or am doing wrong. :confused:

Thank you in advance for any advice/tips!! I really appreciate it :)
 

InstaCarma_Tech

Well-Known Member
Apr 22, 2009
227
1
68
Simple! The files for the website should be directly put under the public_html folder and NOT within any sub-folders. This happens because the default document root is /home/username/public_html.

However, if you have multiple sites and want to have the respective files segregated then you can create them as add-on domains and point the doc root for each of them to the respective folders under public_html.

Alternatively, you can manually edit the httpd.conf file and change the document roots for the concerned websites.

Another thing to be noted here is that , by default, it is the 'index' page in a folder which is loaded automatically. Hence, if you want the 'welcome' page to come up automatically when someone browses your site then you should rename it as 'index.php' or 'index.html', as the case may be.
 

oldbostonchat

Registered
Feb 12, 2010
2
0
51
Thank you!! We leave tomorrow for a 17 hour road trip to Kentucky and have MiFi from Verizon. So guess what I'm gonna be working on while we're on the road LOL This site is going to work if it's the last thing I do!