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

Getting 406 on IE after google redirects my site

Updated April 09, 2015 22:01 PM

What is blocking some visitors in htaccess?

Updated June 22, 2015 01:01 AM