[ad_1]
I’m trying to clean up our SEO by catching non-canonical URLs that are being indexed by Google.
Here is a sample of one of our non-canonical URLs
https://www.umpqua.edu/184-about-ucc/facts-visitor-info?start=1
I can catch it with this RegEx (see below) in the HTACCESS file but it also disabled other URLs that I want to work. It catches URLs with “/NUMBER-“. The number is two-three characters in length.
/([0-9]{2,3})-
So I’m trying to make it more unique. I have tried this (below) without success. My hope is to catch URLs with “edu/NUMBER-“
(edu)/([0-9]{2,3})-
I have also tried
(edu/)([0-9]{2,3})-
Here is my full HTACCESS entry:
RewriteCond %{REQUEST_URI} ^(edu)/([0-9]{2,3})-$
RewriteRule .* index.php [G]
[ad_2]