Topic: Cant edit page in sub folder

Inside my site is a sub folder containing one page. The purpose of the sub folder is to allow a secure log in to that page. I can see the page on the site map but when I click on it to define edit areas, I receive the following message:

Find your index.html page
This is the page which is displayed when a user first visits your website. It usually lives in the public_html, the httpdocs folder or simply in a folder marked ' / ', but is unique to your web host.
    Up
    /public_html
        For doctors
        Resources
        cgi-bin
        css
        index.html
Directory path to where your website files are
/public_html/index.html

It appears that when I try to go into a sub folder, Simple CMS wants to direct me back to the public/html folder. Any suggestions about what I'm doing wrong or is this something Simple CMS cant do.

Re: Cant edit page in sub folder

Hi Paul, could you let us know the URL of the page you are trying to access so we can test this. Feel free to email the link to us.

I can see a sub-folder on your FTP server that has a space in the folder name. SimpleCMS doesn't process spaces very well so this may be the problem if the page you are trying to access has a space in the folder or page name.

Re: Cant edit page in sub folder

Hi Simon. Thanks for your response. I have taken out the space in the sub-folder and this has fixed the problem. I can now see and define the edit areas on the page within that folder.

However, I have created another problem with it. I created the sub-folder to use as a password-protected directory for the website. The page within that directory contains sensitive information that requires a secure log-in to access.

When I set the directory as password protected using my hosting provider's cpanel, SimpleCMS can no longer find the page. I understand why this happens, Simple CMS has no ability to log-in to the password protected directory. But I need users to be able to update information on this page. Can you suggest any way around this problem?

Rgds, Paul

Re: Cant edit page in sub folder

Hi Paul, glad that's working for you now.

I have a sneaky feeling that you can edit the password protected page by updating your site's settings. Change the site URL to this format:

http://username:password@your-site.com/

This should then pass the username/password to the site on the protected page. Someone else requested this feature awhile ago and I'm pretty sure it was implemented but let us know if you have any problems and we'll get it working for you.

Re: Cant edit page in sub folder

Hi Simon, I'm not entirely certain about this approach. I'll send an email with a bit more information and hopefully we can nut out a solution from there.

Rgds, Paul

Re: Cant edit page in sub folder

Hi Paul, I've replied to your email giving a more complete explanation of what I meant.

Re: Cant edit page in sub folder

Is there anyway I can get the additional information on using simple CMS to edit pages which the user must be logged into see?  (Login done via session state in PHP).  I think your solution may work for me also.  thanks.

Re: Cant edit page in sub folder

Hi Aaron, Paul is using HTTP Authentication which will work with SimpleCMS, if you are using this then we can help otherwise if you have a login form that submits to a script to process the login then we unfortunately can't help.

If you are using a form that submits to a script then you could put your static content into seperate files and include them in to your protected pages but also include them in some new pages that you put in a seperate folders. Then your clients can edit the content within the new pages as SimpleCMS can edit PHP incude files. This means the file containing the content will be updated and your protected pages would include your clients changes. A slightly less elegant way of editing the content but should work.

Hope that makes sense.

Re: Cant edit page in sub folder

I have the exact problem:
Every time when I login to my simple CMS, i got this message :

Find your index.html page

This is the page which is displayed when a user first visits your website. It usually lives in the public_html, the httpdocs folder or simply in a folder marked ' / ', but is unique to your web host.
Directory path to where your website files are

Other sites work but this one does not.
website:  www.itcongress.ro
Please help!

Re: Cant edit page in sub folder

Hi Stroila, I have just checked your account and you needed to set the FTP mode to Active instead of Passive (default).

Re: Cant edit page in sub folder

Now it works fine, thank you very much :)