While entering my website via the main page (example.com
) everything works fine. But when entering in example.com/forums
I get a 500 Internal Error, and I see in the error_log it says the following:
Request exceeded the limit of 10 internal redirects due to probable configuration error.
Also, I know I can post the output of httpd -S
, but it is really long and there are no spoiler blocks & and the formatting goes away, sorry.
This is my .htaccess
:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data|js|styles|install) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
RewriteBase /var/www/html
</IfModule>
EDIT: Do you need the virtualhost?
<IfModule mod_rewrite.c>
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
</IfModule>