TIP&HACK

How to check the root directory for uploading WordPress files

When you run a WordPress site, there are many tasks that are almost closed from the admin screen, but you often encounter situations where you need to upload files such as ads .txt to the root folder. Even if you enter the hosting site\’s file manager and upload the file to the top folder, it often does not apply to WordPress. This is because it is actually different from the root folder that WordPress says. Here we explain how to check the root directory of WordPress.

advertisement
advertisement

Root directory?

When you say the root directory on a website, it\’s usually the path where the file is located, just below the URL.

\"rosthi\"
rosthi

For example, \”sitename.abc/filename.txt\”.

How to check root directory in WordPress

It\’s very easy to check. Sign in as a site administrator and go to Tools > Site Health in the left menu. There are two tabs at the top, Status and Information, where you click the Info tab.

\"\"
Site Health Page

On the information screen, click Directory and Size from the menus listed above and below to check the directory information. This is where \’WordPress directory location\’ is the root directory.

\"\"
Directory and file size information

How to upload files to the root directory

There are two main ways to upload files. There are two ways to upload files from the hosting company\’s site using File Manager for the web, or to upload files using an FTP client. As for the difficulty, using File Manager for the web is convenient, but it will be easier for those who are already using FTP.

How to check uploaded files

The best way to verify that a file is successfully uploaded to the root directory is to enter the file name under the site URL to see if the file contents are displayed in the browser. For example, for an ads.txt file, type \”sitename.abc/ads.txt\” to display the contents of the ads.txt site in the browser. If this happens, the file will be uploaded without any problems and can be applied to AdSense.

Finally,

In this article, we briefly looked at how to check the root directory of WordPress, how to upload, and how to check the normal upload of files. The root folder can vary slightly from provider to hosting company and can change depending on whether you use multiple domains. It\’s not a single pattern, so be sure to check it correctly and upload the file.

Copied title and URL