Timeline for How can I bulk redirect old URLs to my home page using .htaccess?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 23, 2020 at 13:00 | history | edited | Éric | CC BY-SA 4.0 |
added 22 characters in body
|
May 23, 2020 at 12:53 | comment | added | Éric | @StephenOstermiller, You are right, there are probably many paths to redirect. I provided a simple regex for example with a comment saying that it has to be adapted. With more details from the OP, we might help him to design the right regex. | |
May 23, 2020 at 10:49 | comment | added | Stephen Ostermiller♦ |
They say "and so on." Your regex is only going to capture the three specific examples they use. They might be happy with Redirect 410 /pl which would capture everything in the directory. Or they might want the regex: ^/pl/index/[0-9]+$ which would match any numbers in place of of their three example numbers.
|
|
May 22, 2020 at 18:13 | history | edited | Éric | CC BY-SA 4.0 |
added 402 characters in body
|
May 22, 2020 at 17:58 | history | answered | Éric | CC BY-SA 4.0 |