301 Redirects what does ([a-z]+)-(.*) and ([0-9]+)-(.*) mean

by Peesen87   Last Updated May 15, 2019 14:04 PM

I just checked an .htaccess file with some custom redirects. There are two redirects i dont fully understand:

RedirectMatch 301 ^/news/([0-9]+)-(.*) /blog
RedirectMatch 301 ^/news/([a-z]+)-(.*)/$ /blog/$1

Both redirects are redirecting the subfolders or pages inside the news directory but i cant fully grab how because i dont understand the following parts "[0-9]+)-(.)" and "([a-z]+)-(.)". What do they exactly mean?

Thank you so much for your help and best regards.

Tags : htaccess


Related Questions


Updated April 09, 2015 22:01 PM

Updated April 13, 2015 20:01 PM

Updated April 07, 2015 22:01 PM

Updated June 22, 2015 01:01 AM

Updated April 14, 2016 08:01 AM