Answer the question
In order to leave comments, you need to log in
How to properly index a single page on WP?
I have a one page WordPress site. It is a downloaded and activated theme. No registered widgets, sidebars, etc. The only thing that is taken from the admin panel is the name and description of the site, all media files are also located in the theme folder.
1. Is it possible to plant a site in this way and how correct is it? Is it necessary to register widgets and stuff and include media in the site from wp-includes? Is it important for indexing or is it only a matter of the ability to administer the site from the admin panel without touching the code?
2. How to write robots.txt and robots meta tags in this case? What folders should not be indexed? Why can't all folders be indexed except for the theme folder!?
3. Should .css and .js be banned? How will the bot understand if the site is working correctly if it is forbidden to walk through the scripts? How will the bot appreciate the adaptability of the layout if we forbid it to index style sheets that contain all our media queries?
4. As I understand it, GoogleBot will ignore the ban on file indexing if it is in both robots.txt and the meta tag, so we need to allow everything in robots.txt. UserAgent:* in turn extends to Google as well. It turns out that we should not prohibit anything in UserAgent: *, or do the rules specifically for GoogleBot overlap the rules for all robots?
Answer the question
In order to leave comments, you need to log in
If you do nothing through the admin panel, then what's the point in CMS at all? Just change the name of the site?
1) It doesn't matter where to include files from: wp-includes or another place, it doesn't matter for indexing. That is, it doesn't matter whether you include jQuery from wp-includes or pull it up from google cdn
2) If you have created 1 page and nothing more, then there is nothing to prohibit in robots.txt. The only thing I would ban is the author's archives (or disable them altogether). This is all easily done with the Yoast SEO plugin , you won't have to go through the files.
3) There is no point in banning css and js, there is no point in doing that. What for? If they are disabled, then Google (and most likely Yandex) will not understand that you have an adaptive layout if all media queries are stored in css files.
4) It is necessary to prohibit only duplicates of content and information that you do not want to see in the search. In your case, you only have 1 page. There is no reason to prohibit anything, except for the author's page (you), since you create 1 page and the author's archive is automatically created immediately, as well as an archive by date. All this can be disabled by the plugin, the link to which I gave above. Well, or register it in robots.txt. But I would choose a plugin, because it adds meta tags to the page, and they take precedence over robots rules (as SEO masters say).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question