S
S
Stanislav2016-12-28 15:17:45
Search Engine Optimization
Stanislav, 2016-12-28 15:17:45

Robots.txt and cnc what to do?

Hello. I could not find detailed information on the Internet on the correct use of this file.
Let's say I have a site built according to the mvc architecture, initially the links are of the type site.com/index.php?r=controller/action, mod-rewrit'om we do the cnc and get site.com/controller/action or something like that . How then to write allow for site.com/a/b / site.com/index.php?r=a/b ? Should I write Allow: /a/b ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Dart, 2016-12-28
@Stasgar

Yes, you should write Allow: /a/b forget about site.com/index.php?r=a/b, no one except the server sees it.
Deny directory will be Disallow: /b/*

S
Sergey Davlyatov, 2017-02-14
@sdavlyatov

If you have traffic from the search, then it will be correct to set up a 301 redirect. Because pages with a dynamic count are already in the index

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question