Answer the question
In order to leave comments, you need to log in
How to put a 301 redirect page by page on a new site?
Hello
Please tell me the solution .
There is a site on the hosting of
the rucenter. I want to page.
I asked questions here and there in support. Asking Yandex for support (they recommend transferring everything right away. But this is impossible. Many articles are outdated. The move is designed to deal with the content at the time of the move. Update old but good articles. and there is no time to immediately transfer 1000 articles)
So far there is no solution.
If you understand, then:
Please write what the code should look like in .xtasse, if today I transfer the article
Http// site/ heading to http// site / heading
And what to add to this code. if tomorrow I want to register in 301 redirect
Http// site/ heading 2 on https// site/ heading 2?
Thanks
Answer the question
In order to leave comments, you need to log in
301 redirect
Redirect 301 example.com https://example2.com
But as for me, it's better to parse everything at once. Here's a good idea -
move your site to a local Openserver server. Check the articles according to your mood, delete unnecessary ones, etc. And then finally transfer to a new hosting, thereby not touching the working version of the site
RewriteCond %{ENV:HTTPS} on
# Проверяем наличие https в URL.
RewriteRule ^.*$ http://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
# Перенаправляем протокол на http.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question