How to Access the Root Directory of Your WordPress Site to Upload Verification Files
Overview
When setting up services like Google Search Console or Google Analytics, you may be asked to verify ownership of your website. One common verification method is uploading an HTML file to the root directory of your site. This guide explains how to access the root directory to upload such files, and also offers an alternative method if you’re using an HTML meta tag instead.
How It Works
The root directory of a WordPress site is the top-level folder that contains all your site files, including core WordPress files like wp-config.php
and wp-content
. On BionicWP servers, this directory is located at: /srv/htdocs/
To upload a verification file (such as for Google Search Console), you typically need to place it directly in this root directory so it’s accessible via your domain (e.g., example.com/google123456.html
).
There are two main ways to access and upload files to the root:
Via SFTP, which allows secure file transfers between your computer and the server
Using a WordPress File Manager plugin, which lets you upload files directly from your WordPress admin area
Step-by-Step: Uploading HTML Verification File
Option 1: Upload via SFTP
Get your SFTP credentials from this article:
How to access your site via SFTPOpen an SFTP client (e.g., FileZilla or Cyberduck) and enter your credentials.
Navigate to the path:
/srv/htdocs/
Upload the HTML verification file you downloaded from Google Search Console or Google Analytics.
Visit your site in a browser (e.g.,
yourdomain.com/google123456.html
) to confirm the file is accessible.Complete the verification process in your Google account.
Option 2: Upload via File Manager Plugin
Log in to your WordPress admin panel.
Install and activate one of the following plugins:
WP File Manager: https://wordpress.org/plugins/wp-file-manager/
FileOrganizer: https://wordpress.org/plugins/fileorganizer/
Go to the plugin’s File Manager view (usually found in your WordPress dashboard menu).
Navigate to the
/htdocs/
directory.Upload the verification HTML file there.
Verify the file is accessible in your browser, then proceed with verification on Google’s side.
Alternative: Using the HTML Tag Verification Method
If you choose the HTML tag verification method instead of uploading a file:
Copy the meta tag provided by Google.
Install and activate one of the following header/footer plugins:
Insert Headers and Footers: https://wordpress.org/plugins/insert-headers-and-footers/
WP Headers and Footers: https://wordpress.org/plugins/wp-headers-and-footers/
Go to the plugin’s settings (usually found under Settings in your WordPress dashboard).
Paste the meta tag into the Header section.
Save changes and complete the verification on Google.
Pro tip: If your verification file isn’t being detected, double-check that it’s uploaded to the correct path (/srv/htdocs/
) and that there are no typos in the filename. Also, make sure there’s no caching plugin or CDN interfering with file delivery. You can test by opening the direct file URL in a private browser window