• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Change my website traffic from http to https (hosting by Little Oaks)

Community Beginner ,
Oct 15, 2018 Oct 15, 2018

Copy link to clipboard

Copied

I redirected my website from http to https, since I got a security certificate; however, it didn't work.

I'm running my website hosted by a third-party (called Little Oaks) and redirected my website from http to https within their website, but it just made two different websites; one starting with http and another starting with https.

They told me that the code in the .htaccess is correct regarding syntax, etc but it could be just being overridden by preferences within the design software, because it also has happened to other customers who're running their websites with Wordpress.

Is there any way that I can stop Muse to overwrite within the Muse software?

Or any general suggestion to solve this problem?

Views

1.7K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 25, 2018 Oct 25, 2018

Make a backup copy of your current file by Saving As old_.htaccess

On a Linux/Apache server, I would use this .htaccess code.  Change yourdomain.com to your actual domain name.  

## Rewrite www to non-www and http to https ##

RewriteEngine On

RewriteCond %{HTTP_HOST} ^www.yourdomain.com$

RewriteRule ^/?(.*)$ https://yourdomain.com/$1 [R,L]

RewriteEngine On

RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]

RewriteCond %{SERVER_PORT} 80

RewriteRule ^(.*)$ https://yourdomain.com/$1 [R,L]

Upload to your se

...

Votes

Translate

Translate
Community Expert ,
Oct 15, 2018 Oct 15, 2018

Copy link to clipboard

Copied

I don't understand.  If your .htaccess file is re-directing users to the HTTPS site, there should be no problem.  Can you post the URL to your site?

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 16, 2018 Oct 16, 2018

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 16, 2018 Oct 16, 2018

Copy link to clipboard

Copied

Yes.  That's what happens when you get a certificate installed on your server.  Ideally, your .htaccess file should redirect users from HTTP to HTTPS.   Also inform Google Console that your preferred URL is HTTPS.

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 18, 2018 Oct 18, 2018

Copy link to clipboard

Copied

Yes, so I'm trying to solve the problem why redirecting is not working. Since I'm using the third party to host my website, they edited my .htaccess file redirecting from HTTP to HTTPS, but didn't work. I double checked with them if there's any problem with my .htaccess file, but they said NO and told me it is possible to Muse itself overwrite the code.

Going back to my questions I wrote at the first post,

1) Is there any way that I can stop Muse to overwrite within the Muse software?

2) If the problem is not from overwriting, how can I solve this problem?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 18, 2018 Oct 18, 2018

Copy link to clipboard

Copied

Are you using a redirect from desktop to mobile javascript in your site?  If yes, start with removing that.

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 22, 2018 Oct 22, 2018

Copy link to clipboard

Copied

I get confused that you've asked about redirecting to mobile but anyway I don't think so because I hadn't used javascript when I build its mobile version by using Muse software.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 22, 2018 Oct 22, 2018

Copy link to clipboard

Copied

I know you used Muse to build your site.  The question is does your Muse site redirect to a different mobile page?   If it does, then it is redirected by JavaScript code that Muse generated.   And that code is causing a conflict.

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 22, 2018 Oct 22, 2018

Copy link to clipboard

Copied

Just a simple answer: Muse neither exports a .htaccess file nor overwrites or deletes an existing one.

You can easily check this by having a look at the files on your server before and after exporting your data.

In other words: You have to place your .htaccess file manually into the server directory of your website. Once done this, Muse won‘t even touch it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 22, 2018 Oct 22, 2018

Copy link to clipboard

Copied

Consider this use case.

The server contains an  .htaccess file that redirects all inbound traffic from HTTP to HTTPS.

Then the page loads with a JavaScript that redirects from HTTPS back to HTTP.

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 23, 2018 Oct 23, 2018

Copy link to clipboard

Copied

Can you show us the code from your .htaccess file?

I ran a Nibbler report and it looks like you have both www and non-www URLs too which is not good.

Website report for www.miautogas.com

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 25, 2018 Oct 25, 2018

Copy link to clipboard

Copied

Screen Shot 2018-10-25 at 3.53.32 PM.png

This is my .htaccess file. In my memory, I haven't added a JavaScript, so, if somehow a JavaSript is being used in my website, I would like to know how I stop using it. I really appreciate your time and help!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 25, 2018 Oct 25, 2018

Copy link to clipboard

Copied

Make a backup copy of your current file by Saving As old_.htaccess

On a Linux/Apache server, I would use this .htaccess code.  Change yourdomain.com to your actual domain name.  

## Rewrite www to non-www and http to https ##

RewriteEngine On

RewriteCond %{HTTP_HOST} ^www.yourdomain.com$

RewriteRule ^/?(.*)$ https://yourdomain.com/$1 [R,L]

RewriteEngine On

RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]

RewriteCond %{SERVER_PORT} 80

RewriteRule ^(.*)$ https://yourdomain.com/$1 [R,L]

Upload to your server's root directory.

Clear your browser's cache and test it.

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 25, 2018 Oct 25, 2018

Copy link to clipboard

Copied

As I suspected, your domain name landing page is redirecting users on tablets and mobile phones to HTTP urls.   See code below.

<link media="only screen and (max-width: 370px)" rel="alternate" href="http://miautogas.com/phone/index.html"/>

<link media="only screen and (max-width: 960px)" rel="alternate" href="http://miautogas.com/tablet/index.html"/>

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 30, 2018 Oct 30, 2018

Copy link to clipboard

Copied

Finally! It gets solved. Thank you so much!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 30, 2018 Oct 30, 2018

Copy link to clipboard

Copied

LATEST

Great!  And don't forget to tell Google Console that your preferred URL is https without the www prefix. 

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines