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