A
A
Alexey2016-01-31 03:12:34
PHP
Alexey, 2016-01-31 03:12:34

How to remove bad URLs?

Hello! My site does not use links that end, for example, with index.php, but Google somehow finds them, and the server returns 200 even if something else is written after php.
All my links look like site.ru/catalog/news/
how to do it right so that the robot does not index these pages and is it necessary to make the server return 404? Now it displays the main page

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Kirichenko, 2016-01-31
@Staurus

Look at the instructions for Robots.txt , there is also an option to disable indexing using the meta tag.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question