Page 1 of 1

Document root and path incorrect (i think!)

Posted: Fri Nov 09, 2007 10:52 am
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

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

Posted: Fri Nov 09, 2007 11:20 am
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?

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

Posted: Fri Nov 09, 2007 11:30 am
by ria
Hi Cyberman, no I am not familiar with .htaccess - can you explain for me please?
thanks
Ria

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

Posted: Fri Nov 09, 2007 12:18 pm
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 ...

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

Posted: Fri Nov 09, 2007 12:38 pm
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  :) :)