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