.htaccess file - how to create one

3tteam.com

(please specify the URL of the site on which you are experiencing the problem)

Error Message

500 Error, please check your php script / enable display_errors in your cpanel

Other Information

I can see the index.html page but as soon as I try to get to a page with Juicebox photos I get this error

open your cpanel from your account and scroll down to the software section and click on alter php config and there you will find the button to turn on display errors

5 Likes

Website URL 3tteam.com

(please specify the URL of the site on which you are experiencing the problem)

Error Message

500

(please share the FULL error message you see, if applicable)

Other Information

htaccess file - how to upload it to server? Control panel, file manager or external FTP will not upload .htaccess file. How can I do this?

(other information and details relevant to your question)

Normally you should go to file manager and go inside the domain folder and htdocs. Afterwards, you can upload a .htaccess file into it. Lastly, type “DirectoryIndex your_file_name.html”. Remember to change the “your_file_name.html” into your real file name. If you have any other problems, please tell me. :slight_smile:

2 Likes

Can you share the error logs that you receive from your desktop FTP client? Note that .htaccess files are restricted to 10kb.

6 Likes

Not sure if this .htaccess file is the issue.

My site has most photos in the Albums folder This seems to be the issue.

If I move them to the root (ie, not in a subfolder called albums) it works.

If I remember correctly, that “please check your php script” message is wrong, and only happens if there is an issue with your .htaccess file, not your PHP code and enabling display_errors doesn’t help.

Are there any particular .htaccess files or directives that apply to these “Juicebox” pages specifically? If so, you may want to try removing them and see if that helps.

5 Likes

Not sure if this .htaccess file is the issue.

My site has most photos in the Albums folder This seems to be the issue.

If I move them to the root (ie, not in a subfolder called albums) it works.

It all got too hard, so I moved everything out of the Albums folder into a new folder called newalbums and all is now well.
Thanks for all the replies.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.