Any page will load after changing error pages

Hi there.
I changed the error pages directly from my rfgd domain’s .htaccess but now any page will load. Also, a the subdomain nerdy. is giving a 500 Internal Server Error and I dont know why.

Thanks.

Internal Server Errors are almost always caused by an error in your .htaccess file. Check the .htaccess file, it’s wrong.

Turns out some .htaccess files were replaced by a Redirect edit that lead to “http://”, but after fixing it, the 500 error keeps appearing and I don’t know why.

@fpuede said:
Turns out some .htaccess files were replaced by a Redirect edit that lead to “http://”, but after fixing it, the 500 error keeps appearing and I don’t know why.

That means your .htaccess file is still wrong. To figure out which line is causing the issue, remove or comment out all lines in your .htaccess file and add them one-by-one to see which of them allow your page to load and which lines cause the Internal Server Error.

@Admin said:

@fpuede said:
Turns out some .htaccess files were replaced by a Redirect edit that lead to “http://”, but after fixing it, the 500 error keeps appearing and I don’t know why.

That means your .htaccess file is still wrong. To figure out which line is causing the issue, remove or comment out all lines in your .htaccess file and add them one-by-one to see which of them allow your page to load and which lines cause the Internal Server Error.

That is not possible, my .htaccess in that subdomain is the same than for the main domain that works without a flaw. It only contains DirectoryIndex and ErrorDocument tags

What does the DirectoryIndex on the subdomain point to? You can’t change the DirectoryIndex with .htaccess rules, so if that’s pointing to a different direction it’s probably responsible for the issue you’re experiencing.

My DirectoryIndex just points to “index.php”, after the redirect issue all subfolders with an index on the main domain have lost the DirectoryIndex.

@fpuede said:
My DirectoryIndex just points to “index.php”, after the redirect issue all subfolders with an index on the main domain have lost the DirectoryIndex.

I’m sorry, I got the directives mixed up. DirectoryIndex is fine, I confused it with DocumentRoot.

I just checked your account and it looks like this is not caused by a .htaccess issue after all. Only your index.php script doesn’t seem to work, other pages work just file. So I think it’s an issue with your script.

I’ve never gotten a 500 Issue caused by a script. I will look further into fixing it now, thank you