Welcome Guest, Not a member yet? Register   Sign In
500 Internal Server Error on Web Server for subpages

(This post was last modified: 06-20-2021, 03:05 AM by jreklund.)

I've just uploaded my site to Ionos, but every page that isn't the home page (e.g. www.mywebsite.com/page) gives a 500 Internal Server Error.
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at 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.

I am using the ddefault .htaccess that came with CodeIgniter 3.1.11.
The content of the .htaccess is:

<IfModule mod_security.c>
  SecRuleEngine Off
  SecFilterInheritance Off
  SecFilterEngine Off
  SecFilterScanPOST Off

RewriteEngine off
RewriteCond $1 !^(index.php|resources|robots.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]

Has anybody else had this issue, or could help? I've been stuck for hours  [Image: sad.png]

"500 internal server error" is just a generic error message to say the application crashed. Look at the Apache error logs and the CodeIgniter error logs. You will probably have more information about the problem.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/


In my computer in XAMPP the application works correctly, even the other accommodation, but in Ionos it does not work. I have asked IONOS technical support and they only tell me that there is a problem with .htaccess. I have asked them to give me the error file but nothing.

You need rewrite engine on!
Change: RewriteEngine On
That would be a good start.
A good decision is based on knowledge and not on numbers. - Plato


check your apache vhost setting, look for content

<Directory your_web_folder>
... check setting here ...

Theme © iAndrew 2016 - Forum software by © MyBB