Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML How to Make a Website Sharing a Website Upload the Website

If you want to make changes to the website after you have uploaded it to the web, how would you do so?

Modifying website after upload

1 Answer

Erik McClintock
Erik McClintock
45,783 Points

Cesar,

In order to make changes to your website after you've put your files online, you simply go through the same process as you did to initially get the website live in the first place! That said, it is a good idea to create a copy of your original website (or a "backup", as it's known) before making any modifications, and then make all your changes to the new copy of your site. That way, should you make any errors, or should things not work out how you thought they might, it's very easy to roll back to a previously working, approved version of your site.

So, as an example:

You have your website's files that you're working on saved in a folder on your local machine. You can view the website (not live) by simply opening your files in a browser. To get your website live on the internet, you could, for example, upload them to a remote server using an FTP client like FileZilla. That remote server hosts your live website and puts it on the internet for the whole world to see. Then, you decide you want to change the font or the colors, or maybe add some new pictures, or even an entire new section to the website. How would you go about doing this? Well, you'll start by going to the folder on your local machine where your website's files are kept. Copy the entire folder that holds those files, rename it to reflect that it is a newer version, and then go into the appropriate files within this copy and make the necessary changes. Once you're pleased and have tested the changes on your local machine (by opening the files in your browser), you go back to your FTP client and upload the new files to the remote server that is hosting your site online (when prompted to overwrite your files, you want to hit OK). From there, you and the rest of the world can view the new changes on your live website.

Hope this helps!

Erik