The page isn't redirecting properly

My domain is:
levente.gq

My web server is (include version):
apache2
Server version: Apache/2.4.25 (Debian)
Server built: 2018-06-02T08:01:13

The operating system my web server runs on is (include version):
Debian 9 4.9.0-7-amd64

I can login to a root shell on my machine (yes or no, or I don’t know):
yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no

When opening the site I get the error “The page isn’t redirecting properly”
Configs:
000-default: http://0x0.st/s4ei.conf
default-ssl: http://0x0.st/s4e-.conf

This also happened on nginx

Hi @leventea

your redirect rule:

RewriteCond %{SERVER_NAME} =levente.gq
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]

So if the SERVER_NAME is levente.gq, then it's redirected to levente.gq. But then your SERVER_NAME is again levente.gq, so - oh, a loop.

Is this that what you want?

But this redirect rule is only present in the :80 VirtualHost, not the :443 VirtualHost, so it shouldn't cause a loop by itself.

1 Like

Yep, thanks. So this isn't the reason.

Is there a content management system? If Apache and nginx create loops?

I have wiped nginx before installing apache2
I don't have a CMS either

Do you have a .htaccess - file with rules?

nope, I do not have a .htaccess file

Then your informations

are not complete.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.