In this post we will show you How to Upload Your Website which you coded yourself. You can use an FTP program called FileZilla to do this, or you can use your website hosting service’s control panel. Keep in mind that you will need to have both a website domain and website hosting before you can upload your website.
1. Pick a Reliable Web Hosting Company
Creating and maintaining a website is not something that you should take lightly. It’s crucial to pick a top-notch web hosting provider that has all the key features to kickstart your project.
Here are several factors that you should consider when choosing a hosting provider:
- Live support. A good hosting service should have a team of experts who can help you at any time. There’s no worse feeling than running into some issues and having to wait for days to get a response.
- Control over your web hosting space. The less control you have over your account, the more likely you are to run into trouble when your site grows.
- Room for growth. Before you commit to a web host, make sure it offers scalable solutions that can provide more power.
2. Choose Your Website Upload Method
The next challenge is picking the right tool to do the job. Here are four of the most popular tools to upload a website:
A browser-based tool with all the key features to take care of your website files and directories. In CPanel, you can find File Manager under the Files section.
However, the File Manager has an upload limit. If your website files are larger than 256MB, you should opt for the next tool instead.
File Transfer Protocol (FTP)
Most web hosting providers include a File Transfer Protocol (FTP) service, so you can use it to connect to an FTP client.
FTP clients have no size limit, so you can upload as many files as you want.
Automatic Website Importer
If you’re a Hostinger client, you can find an Import Website feature in hPanel. You can use this feature to extract a website archive to the public_html directory. The tool supports .zip, .tar and .tar.gz formats, and the upload limit is 256MB.
WordPress Migration Plugins
If you plan to use WordPress, there are several ways to upload your website to the CMS. One of the easiest methods is using a WordPress migration plugin like All in One WP Migration. After installing and activating it, the rest of the steps are self-explanatory.
The upload size limit will depend on your hosting provider. Follow this tutorial to learn how to increase the limit.
3. Upload Your Website File
Now that you know the best tools to upload a website.
Before we begin, make sure to extract the archive to your local computer as FileZilla doesn’t have an Extract feature.
- Connect your account to FileZilla.
- Navigate to Remote Site panel and click on the public_html folder.
- Head to the Local Site panel and locate the extracted files.
- Select the files, and right-click to Upload them to the public_html directory.
That’s it! By following the above steps, you can transfer all files to public_html without doing any extra work. Otherwise, you’ll need to connect via SSH and extract the archive manually.
4. Move the Website Files to the Main Root Directory
In some cases, an additional directory will be created when you upload website files. As a result, visitors will be directed to yourdomain.com/subfolder instead of the default yourdomain.com.
To prevent that from happening, you need to make sure all the files are located in the root directory of your domain, which is public_html.
You can use the File Manager to move your website files. All you need to do is right-click on the subfolder, select the Move option, and set public_html as the destination.
5. Import Your Database
If your website uses a database, you’ll also need to import it along with your website files:
- Create a new MySQL database and user.
- Access your newly created database via phpMyAdmin.
- Use the Import section to upload the backup file of your database.
- Update the MySQL database connection details (database name, host, user, password) in its configuration files.
For more detailed steps, check out our guide on how to restore a database using phpMyAdmin. Skip this part if you don’t use any database.
6. Check If the Website Works
Once the website files are uploaded, it’s time for a final check!
If your domain name is already pointed to your web host, enter the domain name into your browser and see if it directs you to your website.
Keep in mind that DNS changes can take up to 48 hours to fully propagate worldwide. As such, if you just pointed your domain to the web host’s name servers, you might need to wait for a while.
Use an online tool like whatsmydns.net to check the state of your DNS propagation. Just enter your domain name and the tool will check the DNS records against multiple name servers.
Should you follow all the instructions correctly, your website will appear just fine. However, if you run into an issue, ask your hosting provider for assistance.
And if you’re a Hostinger client, contact us via the live chat and one of our customer success agents will be ready to help you!