FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > General Coding/Development
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 09-27-2017, 06:33 PM   Postid: 186170
GavinP
Registered User

Forum Notability:
0 pts: Even-handed
[Post Feedback]
 
Join Date: Mar 2012
Posts: 30
HTTP to HTTPS

Hi

I'm just in the middle of getting my website read to switch from HTTP to HTTPS (making sure all pages are HTTPS compatible etc)

I've been thinking a bit on how to force the redirect from HTTP to HTTPS and obviously .access is the way to go.

Problem is I'm not sure how to do it, versus the rules I've already got which are as follow:


Options +FollowSymLinks
RewriteEngine On
#
# redirect index.htm and index.html to / (do this before non-www to www)
#
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.html?\ HTTP/
RewriteRule ^(.*)index\.html?$ http://domain.com/$1 [R=301,L]

# Redirect non-www urls to www
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.domain\.com
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]


I have been thinking about possibly paying a web designer to set up the redirect for me but thought I'd reach out to the FQ community first to see if anybody knows what I should do.
GavinP is offline   Reply With Quote
Old 10-02-2017, 06:59 PM   Postid: 186175
artemis
Site Owner
 
artemis's Avatar

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: Apr 2004
Posts: 221
Re: HTTP to HTTPS

Hi Gavin,

If you do a search on "htaccess http to https redirect" you can probably find a tutorial at your level...

I know people like to do that (force the change) but I don't. Instead I change the canonical so the bots know it's there and https will automatically get used over time for incoming links from search, and also elsewhere.

Am I missing something? Is there a reason I should be forcing the change?

As a side note, I'm grateful the certs we have work w and w/o the www... I do some work for my state u's distance program and have had issues in coursespaces where the way the https was implemented and the redirect forced resulted in broken links. This was by educational publishers. I'm not saying your method would, in their case, their cert did not not work both with and w/o www.
artemis is offline   Reply With Quote
Old 10-03-2017, 07:08 AM   Postid: 186179
GavinP
Registered User

Forum Notability:
0 pts: Even-handed
[Post Feedback]
 
Join Date: Mar 2012
Posts: 30
Re: HTTP to HTTPS

Hi Artemis,

Most tutorials I've read about this indicate that you should do some form of redirection from http to https be that through htaccess or some other server side programe.

That is what GOD (Google ) themselves say on the matter;

https://support.google.com/webmaster.../6073543?hl=en

"Use server-side 301 redirects

Redirect your users and search engines to the HTTPS page or resource with server-side 301 HTTP redirects."

But you've got me wondering myself now lol!
GavinP is offline   Reply With Quote
Old 10-03-2017, 03:12 PM   Postid: 186180
artemis
Site Owner
 
artemis's Avatar

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: Apr 2004
Posts: 221
Re: HTTP to HTTPS

... yeah, well I take them with a grain of salt .... I'm sure they have their reasons, but that's their reasons for their benefit...
artemis is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 12:22 AM.


Running on vBulletin®
Copyright © 2000 - 2019, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2019 FutureQuest, Inc.
FutureQuest, Inc.