WWW and non-WWW issues

Jason

Well-known member
Joined
May 25, 2019
Messages
277
Gender
Male
Religious Affiliation
Christian
Political Affiliation
Conservative
Marital Status
Married
Acceptance of the Trinity & Nicene Creed
Yes
When site is visited using non-www and logged in and when i click posts in notification panel it takes me to www which shows i am not logged in.

Re-direct is not set correctly and it need a fix. Either it should be www or non-www
 

Romanos

God is good.
Executive Administrator
Community Team
Supporting Member
Joined
May 12, 2015
Messages
3,521
Gender
Male
Religious Affiliation
Christian
Political Affiliation
Conservative
Marital Status
Single
Acceptance of the Trinity & Nicene Creed
Yes
When site is visited using non-www and logged in and when i click posts in notification panel it takes me to www which shows i am not logged in.

Re-direct is not set correctly and it need a fix. Either it should be www or non-www

Weird, I had put a fix in this for a year or so ago. I’ll take a look.
 

Jason

Well-known member
Joined
May 25, 2019
Messages
277
Gender
Male
Religious Affiliation
Christian
Political Affiliation
Conservative
Marital Status
Married
Acceptance of the Trinity & Nicene Creed
Yes
I checked CH with redirect checker website, it is not re-directed. Maybe others can check it.
 

Romanos

God is good.
Executive Administrator
Community Team
Supporting Member
Joined
May 12, 2015
Messages
3,521
Gender
Male
Religious Affiliation
Christian
Political Affiliation
Conservative
Marital Status
Single
Acceptance of the Trinity & Nicene Creed
Yes
I checked CH with redirect checker website, it is not re-directed. Maybe others can check it.

Hmm, I’ll check when I can. :)
 

Jason

Well-known member
Joined
May 25, 2019
Messages
277
Gender
Male
Religious Affiliation
Christian
Political Affiliation
Conservative
Marital Status
Married
Acceptance of the Trinity & Nicene Creed
Yes
Hope this code in .htaccess file helps

RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]

I am using this for re-direction
 
Top Bottom