Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Force Https In Sitemap Rate Topic   - - - - -

 
  • vanderex
  • Senior Member
  • Members
  • Join Date: 27-May 10
  • 384 posts

Posted 30 April 2018 - 10:40 AM #1

how can i force sitemap.xml generation to be https links while site is not..

 

site is backed on cloudflare as http but cloudflare handles all https..

 

so i need to keep like that to prevent loops.

 

but then i generate http links and stuff so i need to force the code.

 

looked in fn.url fn.common etc can't figure it out


Get Cost Effective Content Delivery CDN
Unbeatable speed, stats, & price
MaxCDN Site Acceleration

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17996 posts

Posted 30 April 2018 - 01:36 PM #2

/app/addons/google_sitemap

 

replace (about 6 times)

fn_get_storefront_protocol()

with

'https'

Then regenerate sitemap


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • albertpro
  • Member
  • Members
  • Join Date: 25-Nov 07
  • 117 posts

Posted 18 May 2018 - 04:39 PM #3

/app/addons/google_sitemap

 

replace (about 6 times)

fn_get_storefront_protocol()

with

'https'

Then regenerate sitemap

 

I did as you said. there were six of this fn_get_storefront_protocol() and changed to https but still all the url are http and it hurt the google rating and it shows redirecting all the sites since I change it to full site to https

 

Please am I missing anything, what else should I do?

 

Thank you so much

 

Albert


CS-CART: version 4.6.1