Uploading an index page or website files with FileZilla

Upload website files to the domain’s configured document root, not simply the first folder shown after login. A correctly transferred index file will only become the homepage when the web server and application use that filename and location.

What you need before you begin

Back up any existing index file and identify the correct root, such as a cPanel domain’s displayed path or SiteWorx’s domain html folder. Confirm whether the site is static or managed by an application that generates its own entry point.

01 Upload an index page or website files with FileZilla

  1. Connect securely in FileZilla and select the prepared website folder on the local side.
  2. Navigate the remote side to the exact document root for the intended domain. Review existing index.php, index.html and application files before replacing any of them.
  3. Upload the required files using the upload action or a deliberate drag from local to remote. Review overwrite prompts individually when important live files already exist.
  4. Wait for the transfer queue to finish and inspect the Failed transfers list. Resolve incomplete uploads before testing the release.
  5. Open the site over HTTPS and verify the intended page, assets and links. Clear relevant application or CDN caches only after confirming the server files are correct.

02 Example: map an uploaded static page to its URL

Assume the hosting panel shows /home/ACCOUNT/public_html as the document root for example.com. Uploading your local company.html into that remote directory should make it available at https://example.com/company.html, subject to the site's routing rules.

Item Illustrative location
Local prepared file website/company.html
Remote destination /home/ACCOUNT/public_html/company.html
Public request https://example.com/company.html

Use the document root actually shown for your domain. Uploading the file one directory above it or into another domain's root produces a different result. For an application-managed site, use its publishing process instead of assuming a standalone HTML file is the right deployment.

Confirm the expected result

Check the remote filenames, sizes and homepage behaviour. A remaining old index file or application rewrite can cause a different page to load even after a successful transfer.

How do I recover when a FileZilla upload breaks the website?

If the site breaks, restore the original files from your backup. Do not upload database credentials or full backup archives into public access. For a dynamic application, follow its deployment procedure rather than replacing index.php with an unrelated sample page.

Sources and further reading

  • 0 Users Found This Useful
  • development
Was this answer helpful?

Related Articles

Installing FileZilla Client on Windows

FileZilla Client transfers files between your computer and an authorised hosting account....

Connecting FileZilla to hosting with FTPS or SFTP

Use an encrypted protocol supported by your hosting account. FTPS is FTP protected by TLS,...

Creating and deleting remote folders in FileZilla

FileZilla can organise folders on the hosting server as well as your own computer. The remote...

Downloading a website file backup with FileZilla

FileZilla can download a copy of website files to your computer. This is a file backup only; it...