SOLVED

SSL Migration - Embedded Scripts and Stylesheets

Go to solution
DD-Yasin
Level 2

SSL Migration - Embedded Scripts and Stylesheets

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: 
http://cname.mypage.com/rs/3XX-LGL-4XX/images/app.js
http://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?

2 ACCEPTED SOLUTIONS

Accepted Solutions
Dave_Roberts
Level 10

Re: SSL Migration - Embedded Scripts and Stylesheets

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:"

View solution in original post

SanfordWhiteman
Level 10 - Community Moderator

Re: SSL Migration - Embedded Scripts and Stylesheets

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">

 

View solution in original post

6 REPLIES 6
Dave_Roberts
Level 10

Re: SSL Migration - Embedded Scripts and Stylesheets

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 - Community Moderator

Re: SSL Migration - Embedded Scripts and Stylesheets

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

Dave_Roberts
Level 10

Re: SSL Migration - Embedded Scripts and Stylesheets

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 - Community Moderator

Re: SSL Migration - Embedded Scripts and Stylesheets

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">

 

DD-Yasin
Level 2

Re: SSL Migration - Embedded Scripts and Stylesheets

Thats a great information and wouldve been my next question, thanks a lot!

DD-Yasin
Level 2

Re: SSL Migration - Embedded Scripts and Stylesheets

Thanks for your replies! This has helped me clear any uncertainties I had!