I have many pages with similar urls like:
https://example.com/mainpage/1
https://example.com/mainpage/2
https://example.com/mainpage/3
.
..
https://example.com/mainpage/100
I want to redirect them using .htaccess to new individual pages. Like:
https://example.com/mainpage/1should redirect tohttps://example.com/mainpage-1https://example.com/mainpage/2should redirect tohttps://example.com/mainpage-2https://example.com/mainpage/3should redirect tohttps://example.com/mainpage-3
and so on.
since there are many pages of very similar URLs, I want to know if a single code of each kind can work.
P.S. : I have little knowledge of coding. Need help for my personal blog