I moved my website to a different CMS. The old CMS used to generate URLs in the following format:
After discussion, it can have any number; I have used 100 as an example.
The new CMS generates URLs in the following format:
So, basically, I need to check if the URL contains "discussion/number", remove "discussion/number" from the URL, and redirect it.
How can I do it using .htaccess?