Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?


Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site

 All Forums
 General
 Off topic, News and Updates
 Adding SSL to your site
 New Topic  Reply to Topic
 Printer Friendly
Previous Page | Next Page
Author  Topic 
Page: of 3

insight
ECT Moderator

USA
4216 Posts

Posted - 05/03/2017 :  00:47:33  
I already patched up your web.config code in response to your earlier ticket, so you're all set

Peter

ServeLink
Professional ecommerce web hosting for ASP & PHP
https://servelink.com

Take a look at our image upload/resize tool for the ASP cart
https://servelink.com/clients/cart?gid=7

evolutionweed
New Member

USA
58 Posts

Pre-sales questions only
(More Details...)

Posted - 05/03/2017 :  19:06:29  
Peter! Thank you so much. This is why I have been with ECT since 2004 and with Servelink almost as long. You guys really provide extraordinary customer support. You didn't just tell me what to fix, you went in and made the change. Very much appreciated.

For those who run into the same problem down the road, here's the fixed file:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Redirect to https" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />
</rule>
<rule name="Categories Match" stopProcessing="true">
<match url="^category/([^/]*)/?$" />
<action type="Rewrite" url="categories.asp?cat={UrlEncode:{R:1}}" />
</rule>
<rule name="Product Match" stopProcessing="true">
<match url="^products/([^/]*)/?$" />
<action type="Rewrite" url="products.asp?cat={UrlEncode:{R:1}}" />
</rule>
<rule name="Manufacturer Match" stopProcessing="true">
<match url="^manufacturer/([^/]*)/?$" />
<action type="Rewrite" url="products.asp?man={UrlEncode:{R:1}}" />
</rule>
<rule name="Product Detail Page Match" stopProcessing="true">
<match url="^([^/]+)/?$" />
<conditions>
<add input="{URL}" pattern="\.asp" negate="true" />
<add input="{URL}" pattern="\.css" negate="true" />
</conditions>
<action type="Rewrite" url="proddetail.asp?prod={UrlEncode:{R:1}}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

stevep
Advanced Member

USA
182 Posts

Posted - 05/04/2017 :  12:21:30  
I just noticed that my site is noted as not fully secure in Google Chrome - perhaps I didn't pay close enough attention the last time I applied updaters. I'm now running ASP v6.6.3. There are two questions I have regarding instructions in this thread:
1) in the first post, Sinbad has a series of steps - #3 says "3. If you have the path to ssl set in the vsadmin/includes.asp you can remove that if not move to step4." I did have that set but just removed it. I also saw mention of this in store settings, now gone.
2) #4 and many other places in this thread reference web.config - I don't appear to have that file

#2 references admin > main settings. I have http://www.i-cubeinc.com in store url, and https://www.i-cubeinc.com. Is the instruction saying to have https in both places?

Not a single page comes up as https, even if I put something in the cart and go to checkout - I'm nearly certain this did occur previously.

I had in the past addressed relative vs absolute links and will have to reacquaint myself with that topic.

Thank you,
Steve

C4009
Ecommerce Template Expert

USA
610 Posts

Posted - 05/05/2017 :  09:10:29  
I am currently converting my site for all pages to be secure. I am at the point to changing my webconfig and every time I add the RULE as stated in this article my site errors out. Below is a copy of my LONG current webconfig. I would appreciate any assistance. Thank you in advance.

Charles - www.SleepRestfully.com

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>

<rule name="Canonical name" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" negate="true" pattern="^www\.sleeprestfully\.com$" />
</conditions>
<action type="Redirect" url="http://www.sleeprestfully.com/{R:1}" redirectType="Permanent" />
</rule>
<rule name="Categories Match" stopProcessing="true">
<match url="^category/([^/]*)/?$" />
<action type="Rewrite" url="categories.asp?cat={UrlEncode:{R:1}}" />
</rule>

<rule name="Product Match" stopProcessing="true">
<match url="^products/([^/]*)/?$" />
<action type="Rewrite" url="products.asp?cat={UrlEncode:{R:1}}" />
</rule>

<rule name="Blog URL" stopProcessing="true">
<match url="^blog/?$" />
<action type="Rewrite" url="blog/index.php" appendQueryString="true" />
</rule>
<rule name="Manufacturer Match" stopProcessing="true">
<match url="^manufacturer/([^/]*)/?$" />
<action type="Rewrite" url="products.asp?man={UrlEncode:{R:1}}" />
</rule>
<rule name="Product Detail Page Match" stopProcessing="true">
<match url="^([^/]+)/?$" />
<conditions>
<add input="{URL}" pattern="\.asp" negate="true" />
<add input="{URL}" pattern="\.css" negate="true" />
<add input="{URL}" pattern="\.xml" negate="true" />
<add input="{URL}" pattern="\.txt" negate="true" />
</conditions>
<action type="Rewrite" url="proddetail.asp?prod={UrlEncode:{R:1}}" />
</rule>
</rules>
</rewrite>
</system.webServer>
<location path="Z1_auto.asp">
<system.webServer>
<httpRedirect enabled="true" destination="http://www.sleeprestfully.com/Z1-auto-Travel-CRAP.asp" httpResponseStatus="Permanent" />
</system.webServer>
</location>

<location path="z1.asp">
<system.webServer>
<httpRedirect enabled="true" destination="http://www.sleeprestfully.com/z1-CPAP.asp" httpResponseStatus="Permanent" />
</system.webServer>
</location>

<location path="AirSense_10_AutoSet.asp">
<system.webServer>
<httpRedirect enabled="true" destination="http://www.sleeprestfully.com/AirSense-10-AutoSet.asp" httpResponseStatus="Permanent" />
</system.webServer>
</location>

<location path="C-100_Battery.asp">
<system.webServer>
<httpRedirect enabled="true" destination="http://www.sleeprestfully.com/C-100-Battery.asp" httpResponseStatus="Permanent" />
</system.webServer>
</location>

<location path="Inogen_G3.asp">
<system.webServer>
<httpRedirect enabled="true" destination="http://www.sleeprestfully.com/Inogen-one-G3.asp" httpResponseStatus="Permanent" />
</system.webServer>
</location>





<!-- Browser caching -->
<system.webServer>
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="90.00:00:00" />
</staticContent>
</system.webServer>
</configuration>

Edited by Sinbad to only leave enough as example

Sinbad
Administrator

65850 Posts

Posted - 05/05/2017 :  11:45:08  
Hi I did state that these are generic steps they maybe different depending on host.

Charles - it looks like your hosting with Servelink so you would use the same as evolutionweed, check the post above if you still have a problem can you ask Servelink to take a look.

<rule name="Redirect to https" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />
</rule>

Winners never quit, quitters never win
CSS and Responsive Designs
User Manual for Ecommerce Templates

Sinbad
Administrator

65850 Posts

Posted - 05/05/2017 :  12:10:29  
Hi Steven - can you set both urls to https in the admin main settings. Also I'm getting warnings when viewing the site on https.
I located the following culprits

<link rel="shortcut icon"href="http://i-cubeinc.com/favicon.ico" />
change to

<link rel="shortcut icon"href="/favicon.ico" />

and these

<img src="http://www.i-cubeinc.com/images/name_icube_fgm.gif" width="400" height="75" alt="" />
<img src="http://www.i-cubeinc.com/images/logobanner.jpg"
change to
<img src="/images/name_icube_fgm.gif" width="400" height="75" alt="" />
<img src="/images/logobanner.jpg"



Winners never quit, quitters never win
CSS and Responsive Designs
User Manual for Ecommerce Templates

C4009
Ecommerce Template Expert

USA
610 Posts

Posted - 05/05/2017 :  12:15:16  
Thank Sinbad it seems to have worked.

Charles

stevep
Advanced Member

USA
182 Posts

Posted - 05/05/2017 :  14:01:11  
Sinbad, I believe I solved my issues by editing all the links in my template (.dwt) files from http to https. I also changed the admin main settings that you confirmed. I didn't do anything with web.config or .htaccess, though my host (Hostek) recommended the latter. I may still do this while this topic is fresh in my mind - it won't be if it becomes an issue again.

Editing of links that you outlined would be cleaner code-wise because they are not external links.

Thank you,
Steve

Sinbad
Administrator

65850 Posts

Posted - 05/05/2017 :  15:02:33  
Hi Steve, it will be necessary to edit the web.config or .htaccess as that will catch all inbound traffic from external links set to http and re-direct them to https, also it gives the search engines the directive of this is a permanent redirect. Once you have to working do test the external links work also.

quote:
5. Check the frontend and backend of the site to make sure the urls stay on https and the green lock appears on the pages.
6. Go to google.com / bing.com / yahoo.com and click on any link in the search engine it should take you to https if all is setup correctly above.
7. Login to google webmaster tools and setup a new site for https://
8. Check google analytics account is set to use https


Winners never quit, quitters never win
CSS and Responsive Designs
User Manual for Ecommerce Templates

stevep
Advanced Member

USA
182 Posts

Posted - 05/06/2017 :  09:32:50  
Progress - I went with my host recommendations and created a .htaccess file and uploaded it, as it was simpler for me. One additional tip they provided was to not only redirect to https but to include www if missing.

For less sophisticated users like me, I interpret front end as what one sees through a browser. Back end not so sure - would that be what one sees when logged into Store Admin?

I don't fully understand the #6 recommendation - is it meant to enter a search string specific to my site, then click to see if it goes to https? If so it does go to https in all three. Interestingly enough - when you go to bing.com in Chrome it is shown to be not secure.

Steve

Andy
ECT Moderator

95440 Posts

Posted - 05/06/2017 :  09:39:02  
Hi Steve

That's right, the back end is the store control panel. I think Sinbad means to run a search to find your pages / site and check that https is being returned, you may need to wait a while until the search engines get all the https pages and drop the http.

Andy

Please feel free to review / rate our software

coastalem
New Member

63 Posts

Pre-sales questions only
(More Details...)

Posted - 06/01/2017 :  08:38:27  
Hi, wanting to go the https route.

Sinbad says above in 1. Update to version 6.6+

Q. What if I am on an older version? Can I go SSL whole site now then later update. Or do I have to update first. Will update later affect a site that is already entirely SSL per all the post about the topic here. I already have dedicated SSL that only starts when the customer goes to the checkout section.

Thank you



Andy
ECT Moderator

95440 Posts

Posted - 06/01/2017 :  09:21:53  
Hi

You can switch to https before updating, that shouldn't be a problem or cause any problems down the line.

Andy

Please feel free to review / rate our software

jeff
New Member

USA
58 Posts

Pre-sales questions only
(More Details...)

Posted - 06/09/2017 :  11:24:34  
Godaddy gave me some code to add to the .htaccess file for redirect and reading the thread I see reference to it but I cannot seem to find a .htaccess file. Where would I need to look for this?

Jeff

Sinbad
Administrator

65850 Posts

Posted - 06/09/2017 :  11:57:59  
Hi Jeff, it would be on the server at the root level public_html, if you do not see one you can create the file using a plain text editor like notepad and save it as .htaccess without an extension, you would then need to upload it to the server.

Winners never quit, quitters never win
CSS and Responsive Designs
User Manual for Ecommerce Templates

jeff
New Member

USA
58 Posts

Pre-sales questions only
(More Details...)

Posted - 06/17/2017 :  07:03:30  
Hello,

Thought I would add a little information to the thread to help anyone whom is as green as me and using GoDaddy. This worked for me. The hardest part was figuring out about creating a htaccess file. Once I found that, it was very easy and worked well. I am using Cpanel on godaddy.

To create htaccess file, I followed the instructions in the following thread. Look about 1/3 way down the article for the directions.
https://www.ecommercetemplates.com/seo/search-engine-friendly-urls-php.asp

Next, I followed the directions in this link.
https://uk.godaddy.com/help/redirect-http-to-https-automatically-8828?v=1

In case the above link gets broken over time, here is a cut n paste of the portion of the page I used. There is more information on the page for other hosting plans.

Hope this helps.




If you have a secure certificate (SSL) on your website, you can automatically redirect visitors to the secured (HTTPS) version of your website to make sure their information is protected.

How you redirect traffic depends on the type of hosting you have.

Linux & cPanel

Linux-based accounts use .htaccess files to handle redirection.

If you need to create a .htaccess file, you can use your control panel's file manager (Web & Classic / cPanel).

Using the following code in your .htaccess file automatically redirects visitors to the HTTPS version of your site:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
If you have an existing .htaccess file:

Do not duplicate RewriteEngine On.
Make sure the lines beginning RewriteCond and RewriteRule immediately follow the already-existing RewriteEngine On.

mgdiaz
Advanced Member

Spain
141 Posts

Posted - 08/30/2017 :  15:16:33  
Hi,

I am setting SSL and the product page is not showing right.

url: https://www.galaxylense.com/

step 1. Updated to 6.7.0

step2. I logged in the the admin > main settings and set the SSL url on both, is that correct?:
Store URL: https://www.galaxylense.com/
HTTPS Store URL: https://www.galaxylense.com/

step 3, I don't understand. I haven't set the path to ssl, so... going to step 4.

step 4. setting a redirect

adding this to .htaccess after RewriteEngine On
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

And there I am. Checking the site and finding all the product pages looking terrible:

https://www.galaxylense.com/products.php

Any recommendation please?

Regards,

Gaby
www.gabydiaz.com


Gaby Díaz
Online Business...That's my passion!
www.gabydiaz.com

dbdave
ECT Moderator

USA
8797 Posts

Posted - 08/30/2017 :  16:30:27  
It's just not loading your css stylesheet that's all.
Start by updating this on your pages - <base href="http://www.galaxylense.com/" />
change it to https and see if that fixes it.

David
ECT Power User

mgdiaz
Advanced Member

Spain
141 Posts

Posted - 08/30/2017 :  17:40:43  
Hi David,

And where do I update this? - <base href="http://www.galaxylense.com/" />

Regards,

Gaby

Gaby Díaz
Online Business...That's my passion!
www.gabydiaz.com

mgdiaz
Advanced Member

Spain
141 Posts

Posted - 08/30/2017 :  17:54:34  
Hi,

I found it on another thread. It is on product and categories.php, right?

Is looking good now.

Thanks,

Gaby

Gaby Díaz
Online Business...That's my passion!
www.gabydiaz.com
Page: of 3  Topic   
Previous Page | Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2020 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000