Hello! Can somebody help me ? in webmaster google i see errors like site.com/mobile/page23/mobile i want allow only site.com/mobile/page23/ how to Disallow double /mobile ? (becose the page site.com/mobile/page23/mobile does not exist)
A better solution will be to create server-rules to redirect non-existing urls to an existing one, or just a general 404-error page, or just send them to the index or a search page. Manually redirecting or disallowing that many links are counterproductive.
Hello Wartes, The best solution, you can redirect this page (site.com/mobile/page23/mobile) to site.com/mobile/page23/ and reupdate it from search console. If you want to disallow it by robots.txt, then follow the below: User-agent: * Disallow: /site.com/mobile/page23/mobile/ The search engine won't index this page again. If your site built on WordPress, there are many easy ways fix it out. Let me know if you have any question.