Document root and path incorrect (i think!)

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
ria

Document root and path incorrect (i think!)

Post by ria »

Dear all, Please bear with me while I ask what may seem a very silly question!  Am really new at all this, and although this CMS is made very simple I think I am missing some fundamental knowledge.

I have successfully installed all files, with correct permissions to remote server, and have managed to create a little content.  I create config.php file, then reset permissions as advised.

I uploaded all the files to a folder called CMSmadesimple

The problem is that when I type in URL I can only see the folders - to actually look at the website i have to click on the cmsmadesimple folder.  The doc root is http://www.etcetc.com/cmsmadesimple.

I know i've done something really silly wrong but am not sure how to correct.

Can you please advise me.  I do appreciate any help, as am keen to get moving and learning about this.

thanks very much

ria
cyberman

Re: Document root and path incorrect (i think!)

Post by cyberman »

Hi ria,

welcome at this forum.

You want to type www.etcetc.com and come to your page - right?

There are two ways to get it.

The first is to move all file from subfolder cmsmadesimple to root folder of your account. You will found some helpful informations about here

http://wiki.cmsmadesimple.org/index.php ... New_Server

The other (maybe faster) way is to use a .htaccess file to set a redirect from etcetc.com to etcetc.com/cmsmadesimple. Are you familiar with .htaccess?
ria

Re: Document root and path incorrect (i think!)

Post by ria »

Hi Cyberman, no I am not familiar with .htaccess - can you explain for me please?
thanks
Ria
cyberman

Re: Document root and path incorrect (i think!)

Post by cyberman »

OK Ria, try this:

1. Create a file named htaccess.txt
2. Open the file with your favourite text editor
3. Insert there the following

Code: Select all

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.etcetc\.com$
RewriteRule ^$ http://www.etcetc.com/cmsmadesimple/ [L,R=301]
4. Copy it (after saving) to the root of your host account (NOT the cmsmadesimple folder)
5. Rename htaccess.txt to .htaccess (yes, only a dot and htaccess :))
6. Go to URL www.etcetc.com

Btw. it's possible that the usage of htaccess is disabled by your hoster ...
ria

solved Re: Document root and path incorrect (i think!)

Post by ria »

Thank you sooo much.  That has now sorted me out, and I can get on with the rest of the learning I need to!
I hope any more questions I post will receive the same prompt, concise and friendly answers!!
Thank you again
Ria  :) :)
Locked

Return to “[locked] Installation, Setup and Upgrade”