2
votes

My client have a domain called "https://buzzbehind.com/" (Main Domain). Also there are some sub domains. One of the sub domain url is "http://buzzmembers.buzzbehind.com" (BuzzMembers).

Actually a main domain and sub domains are having SSL certificates. So all of them working when we hitting url with "https" except BuzzMembers".

If I tried to hit the URL of BuzzMembers with https , it is showing me the layout of different sub domain BuzzAdmin32 of Main Domain. But the url is correct.

Htaccess file of Buzzbehind(Main Domain):

DirectoryIndex home.php index.html index.htm index.php

RewriteEngine On
RewriteRule ^(promotionalpage)/(index)/([^/]*)/([^/]*)/([^/]*)/$ https://buzz.buzzbehind.com/promotionalpage/index/$3/$4/$5/ [r=301,L]

RewriteRule ^(productdetails)/(index)/([^/]*)/([^/]*)/([^/]*)/$ https://buzz.buzzbehind.com/productdetails/index/$3/$4/$5/?current_url=https://buzz.buzzbehind.com/promotionalpage/index/$4/$3/$5 [r=301,L]

RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

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

# END WordPress

Htaccess file of BuzzMember:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1    [L]

RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,QSA,NC,L]

Htacess of BuzzAdmin32:

#RewriteEngine on
#RewriteCond $1 !^(index\.php|images|robots\.txt)
#RewriteRule ^(.*)$ /index.php/$1 [L]

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?$1 [L]

</IfModule>

RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
RewriteCond %{HTTP_HOST} ^www\.buzzadmin32\.buzzbehind\.com$
RewriteRule ^/?$ "http\:\/\/buzzadmin32\.buzzbehind\.com\/" [R=301,L]

I need to run the BuzzMembers site with https. Now it is working only with http. Kindly advice me.

BuzzMembers Framework : Codeigniter

Thanks in advance.

1
You mean you need to have buzzmembers.buzzbehind.com to serve properly with SSL (green, not red, on the address bar), right? Then you need either a certificate containing this hostname or you need a wild card certificate *.buzzbehind.com to serve everything. Its nothing to deal with what framework you use on the server. - Ken Cheung
@KenCheung Kindly check this link -> sslshopper.com/… - Karthik Rajan
@KenCheung I checked all settings about the SSL is good. But it is something about the .htaccess i hope. - Karthik Rajan
Actually I use a browser to visit buzzmembers.buzzbehind.com and I can see your login page. What's the problem? I've also try to login and it gets back to the login page again with URI /login which sounds like everything works fine. - Ken Cheung
@KenCheung No. That is not a correct page. The real page is should be look like buzzmembers.buzzbehind.com. If you use the https instead of http, then you will see login form. the login form page is not correct. - Karthik Rajan

1 Answers

1
votes

Add RewriteBase /buzzmembers.

you can use this

RewriteEngine On
RewriteBase /buzzmembers
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]