|
Post by afrina022 on Nov 23, 2023 0:07:36 GMT -5
Search engines themselves recommend using this directive only in extreme cases. Special characters To simplify the composition of the file and to speed up the interpretation of information from the file by machines special characters are used. The first and most important character is asterisk It means that you can substitute any number of any characters instead. In general terms it looks like this etc. How can this be applied in our case? For example we have pages like this site.ua catalog site.ua catalog site.ua catalog site.ua catalog Country Email List site.ua catalog site.ua catalog And we need to close site.ua catalog site.ua catalog site.ua catalog from indexing but not close site.ua catalog site.ua catalog site.ua catalog . You can of course do this User agent Disallow catalog Disallow catalog Disallow catalog But times shorter it will be like this User agent Disallow catalog This can also be used to open all files. Of the same format in one folder. For example in the catalog folder there are files with the extension php rar pdf and jpg and we need to open the latter and close everything. You can do it like this. Example User agent Disallow catalog Allow catalog .jpg Important note the robot puts an asterisk at the end of any parameter in a directive by default. For example the snippet from the example above is seen by the crawler as Allow catalog .jpg Don't forget this. Stop line or dollar sign The symbol marks the end of the line it cancels the asterisk at the end of the parameter.
|
|