My site yields several links for one and the same matter. Then “duplicate titles” (title tags) appear. How to fix it? And how to delete it from the search engine index?
To delete these links from the search engine index you should:
- correct the module structure of your site;
- close them in robots.txt;
- set up 404 error for any other links on your server;
- and only then make requests to Google and Yandex search engines to delete them from the index.
In this article we will tell how to set up 404 error dropout on your site.
An article on the site is available from the main link
Also it is available from the following links
To set up 404 error you should write proper commands in the file .htaccess on hosting.
If it is required for all the pages that are located in catalogue (for example, http://domainname.com/treningi/pervay-statiya.html) to be 404 you should write the following:
RewriteRule treningi* [L,R=404]
If it is required to make 404 a particular page, for example http://domainname.com/v-pomosh-programeru/myarticle.html, you should write the following:
RewriteRule v-pomosh-programeru/myarticle.html [L,R=404]
Also, you might set up redirects if you don’t want to make 404 all the pages. It is used to provide needless links leading to required pages.
For example, if you want the link http://domainname.com/treningi/pervay-statiya.html to lead to page http://domainname.com/content/statiy.html you should write the following in file .htaccess:
RewriteRule treningi/pervay-statiya.html http://domainname.com/content/statiy.html [L,R=301]