Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

.htaccess statement to change https://www to https:// need help

htaccess ssl https:// to https://

  • Please log in to reply



    New Member

  • Member
  • Pip
  • 1 posts

When you click on  https://www.sculpturebyspirit.com/ I need the site to come up at this address https://sculpturebyspirit.com


My solutions which work in  Chrome will not work in Firefox or Edge. The SSL is on the https://sculpturebyspirit.comsite and somehow the search engines got the other address.


rewriteengine on
rewritecond %{HTTPS} off
rewritecond %{HTTP_HOST} ^www\.sculpturebyspirit\.com$ [OR]
rewritecond %{HTTP_HOST} ^https\:\/\/www\.sculpturebyspirit\.com$ [OR]    <------  is this line written correctly  or does it need to be before the HTTPS off statement
rewritecond %{HTTP_HOST} ^sculpturebyspirit.com$
rewriterule ^sculpturebyspirit\/(.*)$ "https\:\/\/sculpturebyspirit\.com\/$1" [R=301,L] 
Edge and Firefox with the https://www. address say the site is unsecured and of course at that address it is, but it seems to be ignoring the htaccess file completely in this case.
Thanks for any help.

  • 0





  • Member
  • PipPipPip
  • 465 posts

Maybe turning on the Apache's mod_rewrite module would make it work or you just need to remove "rewritecond %{HTTPS} off".


For example:


RewriteEngine On

RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]

RewriteRule ^(.*)$ http://example.com/$1[R=301,L]


or in your case:


RewriteEngine On

RewriteCond %{HTTP_HOST} ^www.sculpturebyspirit.com$ [NC] [Not RewriteCond %{HTTPS_HOST} ^www.sculpturebyspirit.com$ [NC]??? A guess.}

RewriteRule ^(.*)$ http://sculpturebyspirit.com/$1[R=301,L] [Not RewriteRule ^(.*)$ https://sculpturebyspirit.com/$1 [R=301,L]]


I believe once the "www." is removed from the non-secure version, the secure version should follow suit. Been wrong before. :D

Edited by AstraNut, 15 February 2017 - 12:21 PM.

  • 0

Similar Topics

Also tagged with one or more of these keywords: htaccess, ssl, https:// to https://

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP