Questions
-
Htaccess - Redirecting TAG or Category pages
The regex in your RedirectMatch doesn't say what you think it says, Jes This part (note the bolded part of the expression (.*) /category/Sample-Category**(.*)** doesn't actually say "match the URL that is specifically** /category/Sample-Category"** That**.*** is a wildcard thatmeans "and any other additional characters that might occur here" So what it's saying is "match the URL /category/Sample-Category _**as well as **_any URLs that have any additional characters after the letter "y" in category. Which is what is catching your -1 variation of the URL (or the -size-30 in your second example). In addition, that wildcard has been set as a variable (the fact it's in brackets), which you are then attempting to insert into the end of the new URL (with the $1), which I don't think is your intent. Instead, try: RedirectMatch 301 /category/Sample-Category https://OurDomain.com.au/New-Page/ you should get the redirect you're looking for, and not have it interfere with the other ones you wish to write. Let me know if that solves the issue? Or if I've misunderstood why you were trying to include the wildcard variable? Paul P.S. You'll need to be very specific whether the origin or target URLs use trailing slashes - I just replicated the examples you provided.
Intermediate & Advanced SEO | | ThompsonPaul0