C
C
colorkid2017-02-20 10:13:42
Search Engine Optimization
colorkid, 2017-02-20 10:13:42

How to write website address in Host in Robots.txt?

Hello.
How to write website address in Host in Robots.txt?
Now I have this type of record www.site.ru, or maybe I need to select https://site.ru? What's better

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
, 2017-02-20
@colorkid

Depends on how the redirect costs (if it costs at all)
If the redirect is from www.site.ru to site.ru, then site.ru should be set as the host and vice versa.
PS If your site opens both on www.site.ru and site.ru and remains the same in the address bar, then your site is duplicated and you need to redirect, after choosing what is more priority for you and how the search engines have already indexed it.

S
Sergey Gornostaev, 2017-10-24
@popy

If you give up everything that is difficult, you will never succeed. The brain is like a muscle, in order to "take weight" it must be trained. Only he will also resist training. You have to keep trying until you succeed.
DHZXt42U0AAsQkG.jpg

D
Danakt Frost, 2017-10-24
@Danakt

Do not under any circumstances score!
Personally, I have never learned something just by reading literature and completing tasks like in school. Theoretical knowledge is good, but practical knowledge is more important. Come up with some project, something interesting and try to implement it. So you will gain practical knowledge, besides, it is much more interesting than just reading and doing assignments.

S
Stalker_RED, 2017-10-24
@Stalker_RED

Can't do it because they are difficult? Go back, repeat the material covered.

R
rinatoptimus, 2017-10-25
@rinatoptimus

Codewars has a lot of tasks for beginners. Highly recommend. From the ability to solve such small problems, experience will begin to grow. In general, start with the simplest things.
Create a JSON file and start rendering elements on the page from it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question