SSL www not working?

Maxoq

Well-known member
Joined
Feb 25, 2015
Messages
294
Best answers
0
Ratings
34 1
Points
28
#1
I have seen more people complaining that SSL www not working on their site but I checked with my websites are doesn't see any issues. Can anyone guide me how to check if both www and non www are working with my current SSL or not? normally I use www for all my domain but for a few long domains, I used non www and used 301 redirect to redirect www to non www and vice versa. Are there somethings wrong with that?
 

24x7serverman

Well-known member
Joined
Jul 25, 2017
Messages
650
Best answers
1
Ratings
64 6
Points
28
#2
SSL should work with the www and non-www. You will need to make sure that your website with www and without www resolving the the same IP address that is to the same server. Also, once confirm with your SSL provider that there won't be any issue.

You can add the below redirection code in your configuration or .htaccess file, if you would like -


Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.yoursite.com$
RewriteRule ^/?$ "http\:\/\/yoursite\.com" [R=301,L]
 

Localnode

Moderator
Staff Member
Joined
Dec 15, 2015
Messages
242
Best answers
0
Ratings
66 1
Points
28
#3

mobin

Well-known member
Joined
Jun 22, 2017
Messages
169
Best answers
1
Ratings
52 1
Points
28
#4
Joined
Jun 15, 2017
Messages
13
Best answers
0
Ratings
3
Points
3
#5
I guess, you have used following code in your .htaccess file

#Force non-www:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]

Make sure, you can use 301 redirection code for forcing either www or non-www in the .htaccess file.

If SSL certificate is issued on www.example.com, then It will automatically work for example.com as well.

So, I can say nothing is wrong.
 
Latest Threads
Replies
1
Views
2
Replies
2
Views
23
Replies
3
Views
41
Recommended Threads

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads