Where Is The Root Directory Of The Site

Table of contents:

Where Is The Root Directory Of The Site
Where Is The Root Directory Of The Site

Video: Where Is The Root Directory Of The Site

Video: Where Is The Root Directory Of The Site
Video: How to Find the Document Root of your Website 2024, December
Anonim

If you are independently engaged in the creation and promotion of your site, but are not very well versed in the technical subtleties and terminology, most likely you have had to deal with the need to find the root directory of the site.

Where is the root directory of the site
Where is the root directory of the site

What is the root directory, or the root folder of the site

The root directory, root folder, or even the root of a site is called the main section of a web resource. It is in it that all the folders and files that you upload to the server are stored, and office documents are also located there.

The section name may differ depending on the provider you use and the server configuration.

Why search the root directory

It is in the root directory of the site that such important files as Sitemaps and robots.txt are located. These are service files designed specifically for search engine robots.

A Sitemaps file is a kind of sitemap for robots. It contains information about the frequency of updating the pages of the site, their location, importance in relation to each other, and so on. This is a hint for crawlers to make their job easier and to ensure that pages are indexed correctly.

Please note that you will have to add the Sitemaps file yourself, but the robots.txt file is probably already present in the root directory. You can replace it with your own.

The robots.txt file contains directives for search engines that tell which pages to index and which not. You can include instructions for specific robots of certain search engines (for example, only for Yandex or only for Google).

Thus, if you seriously intend to promote your resource in the search networks, you just need to find these files and edit them.

Many novice webmasters first come across the concept of a root directory when trying to register with the Yandex. Webmaster service. In order to confirm your rights to manage the site, you need to add the html code to the site pages or upload a specific file to the root directory of the site. This is where you have to rack your brains: where is this mysterious directory?

How to find the root directory

In order to find the root of the site, you should not go to the control panel, but to the hosting panel, which hosts your web resource.

Most often, the directory is named www, domains, HTDOCS, / public_html. So, on the Gino hosting it is the domains folder.

On a WordPress blog, the root folder contains the sections wp-admin, wp-content, and wp-includes. Seeing sections with this name, you can be pretty sure that you are in the right directory.

Recommended: