Answer the question
In order to leave comments, you need to log in
How to make a huge number of 301 redirects?
Hello. Please tell me, there is a task to transfer almost 24,000 materials to another engine, while changing their addresses, but making a redirect from the old 310 to the new ones. How can such a huge number of redirects be implemented? Website on your linux server
Answer the question
In order to leave comments, you need to log in
RipWay : instead of saturating 24000 for each new page manually, try to catch some algorithm by which old and new links can be respectively linked, inflate the algorithm to all old pages and do it via PHP.
1 give a link to the file url-url
2. is there a dependency there. perhaps you can get by with a dozen regular seasons.
3. you just need to physically make them, you just don’t know regular expressions well and can’t force subline or notepad to do
it
https://donatstudios.com/RewriteRule_Generator
unload their number in the current one.
5. 4 method did not help because there are no physical directories, in this case you always have php
6. the most correct one is to push redirects into nginx because it reads the file 1 time and not like a fool reads it in a circle, thereby reducing the load (only possible when presence of nginx)
Even if the regular expression fails, then:
location =/url1 { return 301 example.com/url2 }
location =/url3 { return 301 example.com/url4 }
And so on (in the nginx config).
He chews this calmly when there is an exact match for each location.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question