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
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 05-03-2018, 12:35 AM
sanusense's Avatar
Contributing Member
 
Join Date: 10-24-12
Location: 22.8000 N, 86.1833 E
Posts: 716
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.
__________________
Fish Finder - How do fish finders work

Slim Your Face - Get rid of unwanted fat from your face
 

Advertisement

Advertisement

  #2 (permalink)  
Old 05-03-2018, 07:29 PM
Brandon Sheley's Avatar
Community Builder
 
Join Date: 02-04-08
Location: Topeka, KS
Posts: 621
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
__________________
--==Join our friendly Entrepreneurs Forum ==--
--== by Sheley Enterprises==--
 
  #3 (permalink)  
Old 05-05-2018, 12:43 AM
sanusense's Avatar
Contributing Member
 
Join Date: 10-24-12
Location: 22.8000 N, 86.1833 E
Posts: 716
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.
__________________
Fish Finder - How do fish finders work

Slim Your Face - Get rid of unwanted fat from your face
 
  #4 (permalink)  
Old 05-10-2018, 11:56 PM
sanusense's Avatar
Contributing Member
 
Join Date: 10-24-12
Location: 22.8000 N, 86.1833 E
Posts: 716
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]
__________________
Fish Finder - How do fish finders work

Slim Your Face - Get rid of unwanted fat from your face
 
Go Back   Webmaster Forum > Web Development > Coding Forum

Closed Thread


Currently Active Users Viewing This Thread: 3 (0 members and 3 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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


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 08:23 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC


Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.