HTML5, CSS3, and JavaScript Fourth Edition

(Ben Green) #1

CHAPTER 19. FIRST WEBSITE 198


19.7 Publishing and Backing Up............ 210
19.7.1 Upload v Download................. 211
19.7.2 Uploading (Publishing)............... 211
19.7.3 Downloading (Backing Up)............. 212
19.7.4 Incremental Backup: Rsync............. 212
19.7.5 Microsoft Windows: DeltaCopy........... 212
19.8 Advanced Material................. 213
19.8.1 MIME Types v File Extensions........... 213
19.8.2 robots.txt and Search Engines........... 213
19.8.3 .htaccess........................ 214

Things are about to get bigger. Until this point we have mainly worried
about webpages and smaller things. In this chapter, we “go large” and look
at the whole website. We will consider things like domain names, hosting,
file structure, and backing up.


19.1 Steps to Setting Up a Website


There are many turn-key solutions to making a website. Run a wizard.
Answer a few questions. Fill in some templates. Pretty soon you are up and
running. Wordpress is one of the most popular solutions. There is Drupal.
There is Wix. There is Weebly. There is Joomla. There is Blogger. There
is Squarespace. It is okay to go with these canned solutions. They are fast
and easy.


In this chapter, we assume instead that you want complete control. We
assume that you want to have things your way, and not the way of some
canned solution. We will teach you what you need to know.


To put your webpages online, you will need a domain name and web hosting.


Registrar:Registrars sell you a domain name and provide DNS services.
They will also want to be your webhost, which has advantages and disad-
vantages.


Webhost: Webhosts sell you an IP address, hosting space, and network
access. They will also want to be your registrar, which has advantages and
disadvantages.

Free download pdf