So you've written some code, and after opening those files in your browser you are able to confirm that those files do indeed make a website. You're super excited to show all your friends and family, but how will other people see it? As of right now, those files are just living in a folder on your computer and it's not very practical to send all your website files to every person who wants to see it.
What you need is a
An FTP program transfers computer files from one host to another via the Internet, such as CyberDuck, and FileZilla.
We're getting you the URL of your dreams. Maybe. If it's still available.
Every address on the web needs to be unique—that way users are sure they're getting the bona fide content they're looking for, and not a different site every time they request the same URL.
These sites offer a lot of additional services that you don’t necessarily need. Don’t be tricked into buying anything you don’t need just because they sound fancy—domain registrars are businesses after all, and they’re looking to make money off of you. Here’s a list of common features that registrars often try to bundle with your domain. You can decide for yourself whether it sounds like you need it.
A server hosts your website so that it is available and accessible on the Internet.
These companies allow you, the client, to lease out space to publish your site onto the web on a monthly basis.
Servers work by uploading your files using a
Depending on the size of your website, you may have to sort through which hosting server is the best option for you. Most free hosting servers have limited services, will put ads on your site, and cannot host complex or large sites. Plus: virtually no customer service, since you're not a paying customer.
There are also free solutions to web hosting. One popular
option is
GitHub Pages
, which is perfect for hosting a one-page,
static website like a personal website or a landing page. While
you won’t have access to a server and therefore won’t be able to
run any sort of server-side processes, it should be enough for a
simple website. You can even set up your domain to point to your
GitHub Page and mask the
Once you’ve registered your domain name and purchased a hosting server, you will need to link the two in order for the URL to direct to the correct website. Most registrars lay out a clear process in connecting the domain name with the host, but in general you’ll just be pointing your domain name as the address to the IP address of the server where your files will be hosted.
In these steps, we’ll be assuming here that you’ll be logging into your server using SFTP, but if that’s not the case, you should look up a guide for whatever protocol you have on your server.
In FileZilla, open the Site Manager by going to File > Site Manager. This should bring up a window with a bunch of fields for you to fill out. The only things you need to make sure you have are the host (which is the IP address of the server you’re connecting to), the protocol, the logon type (which should be normal), and the user and password fields to your account. After filling out those fields, move over to the “Advanced” tab and in the Default remote directory field enter “/var/www/html.” This will just make it easier for you to get to the directory where you’ll be uploading your files. From here, you should be able to log in.
In Cyberduck, when you launch the application for the first time you should see a set of pre-loaded bookmarks. You can go ahead and delete those – you’ll be adding your own bookmarks soon. Right-click on the screen and create a new bookmark, and you’ll be prompted to enter the information necessary to connect with the server. Fill out everything at the top of the screen, making sure not to check “Anonymous Login,” and then click “More Options.” In the “Path” field, enter “/var/www/html.” This will just make it easier for you to get to the directory where you’ll be uploading your files. Once you’ve done that, close out of that window and double-click on the bookmark you just made. Enter your password to connect to your server, and you should be in!
Once logged into FileZilla, you should have six windows: one on top, four in a two-by-two layout in the middle, and one on the bottom. The top window (1) is where you’ll get status reports on your connections to the server. The middle left windows (2, 4) are your local directory – they’re the files sitting on your computer. Then your middle right windows (3, 5) will have the directory for your server. The bottom window (6) has useful information about any files you have waiting to be uploaded and their status. To upload your files, simply locate them on your computer in the left middle bottom pane and then drag them over to the right middle bottom pane. Make sure that you upload your HTML file as well as any important other files (CSS, images, etc.) into this folder exactly as it appears on your computer.
In Cyberduck, once you’ve connected to your host server it should direct you to a new screen. Make sure that you’re in the /var/www/html directory, and from here you can just drag and drop your files from your computer into Cyberduck. Voila! That’s it!
Now that your website is live, check it out! Make sure to click on all of the links to make sure that they are directing to the right places and that all the images are showing. If you have to fix anything, be sure to re-upload the edited file onto your hosting server.