Password Protecting public_html and Magento issues
When we password out root public_html directory and then go to our website admin panel which requires login (Magento), the site fails to load css, images and javascript. On the login page if we view source, we see the paths to all the css, images and javascript and if we click these links, we get error 404 not found when in fact the file is there on the ftp.
When we remove password protect, the site functions normally with no issues and all css, images and javascript paths are functional.
I am thinking this is a server related issue. does anyone know what could be causing this?
-
When we password out root public_html directory and then go to our website admin panel...
Password protecting public_html sets it for the entire domain.com0 -
Ok i know this, but how does that explain why css, images and javascript are not being found when called upon? 0 -
This usually happens when something is wrong with the path to your htpasswd file Can you ensure the path is correct? Also try adding this to the end of the htaccess rules: ErrorDocument 403 default Example: AuthType Basic AuthName "Secure Area" AuthUserFile "/home/user/.htpasswds/public_html/passwd" require valid-user ErrorDocument 403 default0
Please sign in to leave a comment.
Comments
3 comments