SSL Migration - Embedded Scripts and Stylesheets | Community
Skip to main content
Level 2
March 13, 2023
Solved

SSL Migration - Embedded Scripts and Stylesheets

  • March 13, 2023
  • 2 replies
  • 2682 views

I'm currently in step 2 of activating SSL for all our landing pages. I started hard-coding https infront of our URL references and I've got a few questions regarding the process.
Our landing pages use CSS and JS files that are uploaded in our Design Studio, but they are also referred via http instead of https. 

Examples of URL structure: 
cname.mypage.com/rs/3XX-LGL-4XX/images/app.js
cname.mypage.com/rs/3XX-LGL-4XX/images/custom.css


Do I have to edit the path somehow or will it be updated automatically, like images uploaded to the Design Studio?

Best answer by Dave_Roberts

The path will be updated just like the image paths will be. You'll want to add "https:" in front of anything that's hosted in Marketo and currently has "http:"

2 replies

Dave_Roberts
Dave_RobertsAccepted solution
Level 10
March 13, 2023

The path will be updated just like the image paths will be. You'll want to add "https:" in front of anything that's hosted in Marketo and currently has "http:"

SanfordWhiteman
Level 10
March 13, 2023

(What Dave means is you need to update the URLs accordingly, they will not be updated automatically.)

Dave_Roberts
Level 10
March 13, 2023

Yeah, I read this in relation to the referenced path that is provided to the files in the Images/Files folder in the Marketo UI. That piece will change from "http:" to "https:" once the update is complete which is why you'll want to work thru your templates and pages and change any coded instances of "http:" to "https:" so that all gels once the updates are pushed thru on the Marketo side. 

SanfordWhiteman
Level 10
March 15, 2023

To avoid the uncertainty/11th-hour rush of “when will my SSL cert be installed so I can update every link”, better to use protocol-relative URLs, which you can put in place at any time:

<link rel="stylesheet" href="//host.example.com/path/to/file.css">