79203878

Date: 2024-11-19 14:50:19
Score: 2
Natty:
Report link

The same question asked by the same person, but the answer accepted is different, it is good to share it here too. Here: https://serverfault.com/questions/487006/redirecting-all-sub-pages-to-another-subpage-using-htaccess?newreg=b825d1fee10b48cba7366e740c21b770

Please give credit to Laetitia on original post:

RedirectMatch 301 /answer-now/.* http://www.itdost.com/questions

I would add that if you need to rewrite multiple subsub /answer-now/Food/burger to http://www.itdost.com/questions/, you will need to add \/.* at the end.

RedirectMatch 301 /answer-now/.*\/.* http://www.itdost.com/questions
Reasons:
  • RegEx Blacklisted phrase (2.5): Please give
  • Probably link only (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: MaxiGui