Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Closed Thread
 
Thread Tools Display Modes
Share |
  #1  
Old 05-03-2018, 12:35 AM
sanusense's Avatar
sanusense sanusense is offline
Contributing Member
 
Join Date: 10-24-12
Location: 22.8000 N, 86.1833 E
Posts: 722
iTrader: 0 / 0%
Exclamation Post/Pages are not redirecting from HTTP to HTTPS

Hi,

Recently I have installed SSL on a site, everything looks fine except the Pages/Posts url.

The site homepage and other posts resolving to HTTPS.
For example, when I go through

SiteName.com -> resolving to -> https://sitename[.com]

However, when I type:

Sitename.com/Pages then, its still resolving to old Non-https url.

What should I suppose to do? Since, the hosting company already said we can't do much about coding n stuff.
 

Advertisement

Advertisement

  #2  
Old 05-03-2018, 07:29 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is online now
Community Builder
 
Join Date: 02-04-08
Location: Topeka, KS
Posts: 646
iTrader: 3 / 100%
Have you added anything to your .htaccess file?

That's how I've always done it.

https://stackoverflow.com/questions/...tandard-domain
 
  #3  
Old 05-05-2018, 12:43 AM
sanusense's Avatar
sanusense sanusense is offline
Contributing Member
 
Join Date: 10-24-12
Location: 22.8000 N, 86.1833 E
Posts: 722
iTrader: 0 / 0%
My .htaccess file looks like this:
Code:
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
And it's working for homepage only.
 
  #4  
Old 05-10-2018, 11:56 PM
sanusense's Avatar
sanusense sanusense is offline
Contributing Member
 
Join Date: 10-24-12
Location: 22.8000 N, 86.1833 E
Posts: 722
iTrader: 0 / 0%
[UPDATE]

Problem fixed, found solution on Google Product Forums. They suggest me this .htaccess code and it's redirecting every pages/posts/attachments to HTTPS.
Code:
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
 
Go Back   Webmaster Forum > Web Development > Coding Forum

Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Did how Google give the same weight between https and http? kimseasok SEO Forum 0 06-25-2017 07:53 PM
will moving from http to https effects site traffic? pavan kumar SEO Forum 12 06-17-2017 05:28 AM
How To Check If Your SSL HTTPS Website Still Uses HTTP URLs snakeair SEO Forum 0 03-26-2017 05:06 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 07:49 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC