FWDP 1000 Day 06 Slides
FWDP 1000 Day 06 Slides
Morning Review
Download the files.
Edit styles.css to follow the styling best practices from the
Day 5 slides.
Agenda
Introduction to FTP
Pointing a Domain
SSL Certificates
Lab Time
4
Introduction to FTP
5
Login to SiteGround
Login to your SiteGround account and click on Websites.
FTP Credentials
Click on the three dots and choose FTP Credentials.
You can also change your FTP password here if you need to.
13
FTP Credentials
The popup modal will contain
the information you need to add
to your FTP client.
Click “OK”.
18
FileZilla – Interface
Directory: public_html
URL: https://example.com/
Directory: public_html/styles/styles.css
URL: https://example.com/styles/styles.css
Directory: public_html/country-website
URL: https://example.com/country-website/
25
Index.html
The homepage for all of your projects should be index.html.
If a user navigates to a directory/folder, the server looks for
an index.html file.
If I have a directory of “country-project” with an index.html file
in it, then these URLs are the same…
https://example.com/country-project/
https://example.com/country-project/index.html
28
Pointing a Domain
29
Quick note…
Change Nameservers
The simplest way to point a domain to a server is to change
the nameservers (DNS).
Copy the nameservers from your hosting account and paste
them into your domain registrar account.
31
ns1.siteground.net
ns2.siteground.net
32
NameSilo - https://www.namesilo.com/Support/NameServer-Manager
GoDaddy - https://ca.godaddy.com/help/change-nameservers-for-my-domains-664
NameCheap - https://www.namecheap.com/support/knowledgebase/article.aspx/767/10/how-to-change-dns-for-a-domain/
Domain.com - https://www.domain.com/help/article/domain-management-how-to-update-nameservers
37
Step 4 – Wait…
It can take up to 48 hours for your nameserver records to
propagate to the various DNS servers on the internet.
Realistically it is much quicker and you can start checking
after 30 minutes…
https://www.whatsmydns.net/ or https://intodns.com/
Once it shows the new nameservers, check your URL in the
browser.
40
For example…
Host: example.sg-host.com to mydomain.com
Save the .xml file and use the Import feature to open it.
42
Caching
44
What is caching?
A cache is a temporary storage of data to speed up a request
in the future.
Caching Levels
There are multiple levels of caching that happen on the web:
Browser – Chrome, Firefox, etc.
Router – The device that connects your device to the
internet that you unplug when it stops working.
ISP – Telus, Shaw, Rogers, Bell, etc.
Server – SiteGround, Bluehost, etc.
46
So, we can turn off caching in some places and clear caches
in other places while developing our sites and apps.
47
Browser Cache
The browser cache is the easiest cache to clear. A hard
refresh on your browser is usually sufficient.
Windows: Ctrl + F5
Mac: Cmd + Shift + R
Browser Cache
The browser cache can also be disabled by having your
browser’s developer tools open and checking the box to
Disable Cache.
Firefox
Chrome
49
Server Caching
Caching is extremely important to speed up your websites
once they are completed.
But while being developed, it should be disabled.
SSL Certificates
54
HTTP
HTTP is not encrypted and is able to be read and
manipulated by a third-party.
For example:
Intercepting a form submission on a website.
Injecting malware or advertisements on a website.
56
HTTPS
HTTPS adds another step before transmitting data: the
handshake.
The handshake verifies that the server and browser are both
who they claim to be using TLS/SSL Protocols and
Certificates.
Then data is transmitted in an encrypted connection.
57
Let’s Encrypt
Let’s Encrypt launched in December 2015.
Force HTTPS
Once the SSL Certificate is installed, you can begin to access
all of your sites from https:// now.
Toggle HTTPS Enforce ON to force all traffic over https.
61
Recap
My domain is https://jonathonleathers.com/ and when users
go to that URL it should load my landing page. How should I
upload my landing page to make that work?
a) Upload my "landing-page" folder from my computer into
public_html on the server.
b) Upload the files/folders in my "landing-page" folder from
my computer into public_html on the server.
64
Recap
True or False: Once a file has been uploaded through
FileZilla, it will automatically be updated on the server when
you make changes to it on your computer.
65
Projects
No assignment today.
Peer Review
Before submitting your Landing Page, consider asking a
classmate to look at the page and your code.
Do the same for them.
Give each other suggestions and see if you can find any
issues with the code, design, functionality, accessibility, etc.
68