Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 General help me questions
 Canonical tags in v8
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Lori Titus
VP-CART New User

144 Posts

Posted - January 08 2020 :  01:30:04  Show Profile  Visit Lori Titus's Homepage  Reply with Quote
Going through SEO on my website. getting a lot of duplicate titles and content notices on category, product, and content pages. It is all related to http vs https versions of the same page. Would like to use canonical tags to direct to one version. I already have all the SEODynamic configurations set to ''yes''. Anybody have a way to use canonical tags to point the https versions of the pages to http?

The Internet''s #1 supplier of honey and beeswax.

support
Administrator

4679 Posts

Posted - January 08 2020 :  14:21:35  Show Profile  Visit support's Homepage  Reply with Quote
Hello,

You could check the following.

1. If your website is having a valid SSL certificate, open shop$config.asp in config and admin/config folders and ensure the url is like follows.

const l="https://www.example.com"
const xmysite="https://www.example.com"

Replace example.com with your actual domain name. Please note that both urls having https://

2. Set 301 redirection in web.config file, so that you can redirect all the website traffic to https://www.example.com url.

Please refer the example in following url.

https://stackoverflow.com/questions/42401506/web-config-url-rewrite-force-www-prefix-and-https

You can find web.config file under root folder of your website.

Hope this helps.

Thank you,

VPCart Customer Care Team
www.vpcart.com


Go to Top of Page

Lori Titus
VP-CART New User

144 Posts

Posted - February 04 2020 :  10:31:26  Show Profile  Visit Lori Titus's Homepage  Reply with Quote
The following is the example given for #2. I replaced all instances of ''example'' with my website, and it broke the site. Reverted back to my original web.config.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="HTTP Redirect to HTTPS" enabled="true" stopProcessing="true">
<match url="(.*)" ignoreCase="false" />
<conditions>
<add input="{HTTPS}" pattern="off" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent" />
</rule>
</rules>
</rewrite>


<rewrite>
<rules>
<rule name="Redirects to www.example.com" patternSyntax="ECMAScript" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTP_HOST}" pattern="^example.com$" />
</conditions>
<action type="Redirect" url="https://www.example.com/{R:0}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

The Internet''s #1 supplier of honey and beeswax.
Go to Top of Page

support
Administrator

4679 Posts

Posted - February 04 2020 :  17:21:13  Show Profile  Visit support's Homepage  Reply with Quote
Hello,

It seems you are trying to enable 301 redirection for the website beefolks.com which is hosted with us. If so would you please open a ticket via our helpdesk.

https://helpdesk.vpcart.com/

Thank you,

VPCart Customer Care Team
www.vpcart.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00