Need Help! 500 Internal Server Error

Status
Not open for further replies.

Dead-i

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

It looks like the server is cancelling your request because it has detected an infinite redirection loop, caused by a .htaccess rule. This looks to be caused by /public_html/travel/.htaccess. Please can you check this? (It's worth renaming the file to something else to see if that fixes it first.)
 

lymestud

New Member
Messages
3
Reaction score
0
Points
1
Thanks for the reply Dead-i! I re-named the file and now I am encountering the error

"Not Found
The requested URL /travel/home/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
So the problem was the .htaccess file and its rewrite/redirect rules. The problem is that you'll still need the .htaccess file to change the external URL (/travel/home/) into its internal version (which will be ugly and have a form like "/index.php?something=something_else", and that's why you don't want your users to have to deal with it). The difficulty is going to be in figuring out which of the redirect/rewrite rules was causing the infinite loop (it will be of the form "if it's called, Bob, change it to Ralph, but if it's called Ralph, change it to Bob (and so forth)") and eliminating only that problem.
 

lymestud

New Member
Messages
3
Reaction score
0
Points
1
So after going through it this is the error:
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at no-reply@x10hosting.com to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request."

And here's the code:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /travel/home/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /travel/home/index.php [L]
</IfModule>
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
the problem probably isn't with your computer or internet connection but instead is a problem with the web site's server.
not true

server error 500

There might be a syntax error in one or more of your [ .htaccess ] file(s) - try renaming all of your [ .htaccess ] file(s) to see if this is the case

this error could also be due to a PHP error - that is commonly caused by older out of date scripts.

try to set error logging on - see --> [ https://x10hosting.com/support/account/my-website-is-showing-a-blank-page ]
be sure to set [ log-errors ] on - before you click on save - this might make a log file for you

a error log file - named [ error_log ] - will appear in the same folder that the executed PHP script that throws the error is in
###

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

see --> [ https://x10hosting.com/support/general/error-messages-explained ]
 
Last edited:
Status
Not open for further replies.
Top