Too Many Redirect on Sub Directory Websites

I have installed WordPress site on my server (Ubuntu 18.04 LTS).

My primary domain is: https://awplife.com/
Cloudflare Free SSL implemented and running awesome on the primary domain.

But site on my sub-directory like:

  1. https://awplife(dot)com/docs/ (it’s normal WordPress site)
  2. https://awplife(dot)com/demo/ (it’s normal WordPress multi-site)

Now, sub-directory sites are not opening after implementing SSL and show that message:

# This page isn’t working

**awplife(dot)com**  redirected you too many times.

* [Try clearing your cookies].

ERR_TOO_MANY_REDIRECTS

All sites .htaccess file code:

1. .htaccess file code awplife(dot)com/

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

2. .htaccess file code awplife(dot)com/docs/

<IfModule mod_rewrite.c>

RewriteEngine On
RewriteBase /docs/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /docs/index.php [L]
</IfModule>

3. .htaccess file code awplife(dot)com/domo

RewriteEngine On
RewriteBase /demo/
RewriteRule ^index\.php$ - [L]

RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]

Any help appreciated.

1 Like

docs redirects to http, which redirects to https, and so on. You’re probably using Flexible SSL, which makes things more difficult.

https://community.cloudflare.com/search?q=wordpress%20ERR_TOO_MANY_REDIRECTS

1 Like

Thanks, but. Still I am not getting your point. Can explain it more?

1 Like

If I am changing mode Flexible to Full all site down.

Error 525 Ray ID: 516bde2dbb47ce7b • 2019-09-15 16:09:56 UTC

SSL handshake failed

1 Like

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