ERR_TOO_MANY_REDIRECTS with OpenLiteSpeed

Hi,

My stack:

  • Ubuntu 18.04

  • OpenLiteSpeed 2.x

  • MariaDB 10.4.x

  • SSL

My OpenLiteSpeed Vitual Host Configuration:

docRoot $VH_ROOT/web/

enableGzip 1
cgroups 0

errorlog $VH_ROOT/logs/error.log {
useServer 1
logLevel DEBUG
rollingSize 10M
}

accesslog $VH_ROOT/logs/access.log {
useServer 0
rollingSize 10M
keepDays 30
compressArchive 0
}

index {
useServer 0
indexFiles index.php
autoIndex 1
autoIndexURI /_autoindex/default.php
}

errorpage 404 {
url /error404.html
}

expires {
enableExpires 1
}

accessControl {
allow *
}

rewrite {
enable 1
autoLoadHtaccess 1
logLevel 0
}

My .htaccess file:

BEGIN WordPress

END WordPress

An interesting test that I did was install normal version of Wordpress and it’s working fine.

With Bedrock when I tried to access the login page/recovery password, I receive the ERR_TOO_MANY_REDIRECTS error.

Hi, have you set your WP_HOME and WP_SITEURL correctly?

From the docs:

Leaving out the /wp-part from the WP_SITEURL will causes redirect loops. This is different from the regular WordPress version.

This topic was automatically closed after 42 days. New replies are no longer allowed.