K
K
kugno2018-08-15 13:48:53
htaccess
kugno, 2018-08-15 13:48:53

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

3 answer(s)
O
Orkhan Hasanli, 2018-08-15
@azerphoenix

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

V
Viktor Taran, 2018-08-15
@shambler81

RewriteCond %{ENV:HTTPS} on
   # Проверяем наличие https в URL.
RewriteRule ^.*$ http://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
   # Перенаправляем протокол на http.

P
Puma Thailand, 2018-08-16
@opium

The founder needs to transfer everything and then figure it out

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question