HtAccess

Status
Not open for further replies.

boulderi

New Member
Messages
6
Reaction score
0
Points
1
Hi there, I'm trying to protect a certain directory and I keep getting this error:
500 Internal Server Error

Help, please!
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi,

Please can I have a link to the 500 Internal Server Error?

Thank you,
 

nkhx10ho

New Member
Messages
3
Reaction score
0
Points
1
I get this without trying to protect pages. I'm just trying to do a vanilla custom ErrorDocument, and then my entire site gives the 500 error that his does.
 

boulderi

New Member
Messages
6
Reaction score
0
Points
1
I get this without trying to protect pages. I'm just trying to do a vanilla custom ErrorDocument, and then my entire site gives the 500 error that his does.
I see, this ongoing issue is getting on my nerves.
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
I'm trying to protect a certain directory and I keep getting this error:
500 Internal Server Error
if x10hosting's free-hosting server finds something in one of your [ .htaccess ] files it does not like - it throws a [ 500 Internal Server Error ] - try renaming your [ .htaccess ] file(s) to test if this is the case. This error could also be related to a PHP error and is commonly caused by older out of date scripts

Enabling error reporting on your account might help with this issue
for information about how to do that --> [ http://x10hosting.com/support/guides/php-configuration-tutorial#enabling-error-reporting ]

you might need help by a Admin to find what the issue with your code is

see --> [ https://x10hosting.com/community/th...d-options-supported-in-htaccess-files.197677/ ]
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
I'm just trying to do a vanilla custom ErrorDocument
Re: How to change or add your own error pages?

The way I do it

1. Create a subdirectory in folder [ public_html ] to house the pages - I named it 'errors' - to keep them out of the way
2. Create a custom error page(s) in that directory - I usually name them like [ error404.html ] - named for the error code
3. Go to folder [ public_html ] and open (or create) file [ .htaccess ] to edit (there is a dot in front of that name)
4. Add lines (one for each error page you make):

ErrorDocument 403 /errors/error403.html
ErrorDocument 404 /errors/error404.html
ErrorDocument 500 /errors/error500.html

Save the file

5. Try to access a nonexistent file to test for a 404 error

while you can use cPanel to setup your error pages on a x10hosting's free-hosting account - if the server is setup for it - I would not count on it
 
Last edited:

boulderi

New Member
Messages
6
Reaction score
0
Points
1
Well. I renamed the file. Now it doesnt even ask for a login
Just takes you to the site
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
Just takes you to the site
IF as I assume there is no 500 error - IMO you have a issue with your [ .htaccess ] file
are you doing your own hand edit to the [ .htaccess ] file ?
did you try to protect that directory using cPanel-x3 ?
if not - you might try that
 
Status
Not open for further replies.
Top