Help with Regex in Redirection
-
Due to a bunch of spammy web search sites, I’ve got a ton of broken links in my Webmaster tools that I’d like to fix.
For some reason, these search sites don’t direct to the correct URLs because they all cut off the full URLs by adding “..” (no quotes) to the end of the URL.
For example: This is a broken (not found) URL that I see in my Webmaster tools: https://www.doseofdigital.com/2011/10/fa..
I’ve got about 100 of these. They all have the same syntax (site url/year/month/XX..). I tried coming up with a regex expression that would fix this, but I can’t figure it out. Basically, I want every URL that has “..” (no quotes) in it to redirect to the homepage. Only the URLs from these web search sites have the two dots, so no other legit URLs or links should be affected.
Can someone help with this?
Thanks,
JMR
- The topic ‘Help with Regex in Redirection’ is closed to new replies.