Pages with images ask for password

4 posts by 2 authors in: Forums > CMS Builder
Last Post: January 20, 2009   (RSS)

Re: [myraltis] Pages with images ask for password

By timofee - January 19, 2009

After further investigation I can confirm that the lines I've added to the .htaccess file in the cmsAdmin directory is causing the problem.

I added:

AuthUserFile /usr/local/etc/.htpasswd
AuthGroupFile /dev/null
AuthName "Enter Username and Password"
AuthType Basic

require user xxxxxxxx


This has the effect of prompting the viewer for the username and password for every image on the page.

With the code removed from .htaccess all images are displayed without a problem.

I want to keep the password protection - what can I do?

Tim

Re: [myraltis] Pages with images ask for password

By Dave - January 19, 2009

Hi Tim, welcome to the CMS Builder forum! :)

Change the upload directory and url under: Admin > General Settings to be outside of the /cmsAdmin/ directory.

Once you've done that erase any old uploads and upload new files and you should be fine.

Let me know if that fixes it for you.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Pages with images ask for password

By timofee - January 20, 2009

Thank you Dave.

Did as instructed and problem solved.

Tim