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. awplife(dot)com/docs/ (it’s normal WordPress site)
  2. 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

    BEGIN WordPress

    RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress
  2. .htaccess file code /docs/

    BEGIN WordPress

    RewriteEngine On RewriteBase /docs/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /docs/index.php [L] # END WordPress
  3. .htaccess file code /domo/

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

    add a trailing slash to /wp-admin

    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.

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