Create redirects that must exclude a part of the url
-
Hello and thanks for your support!
After an Elementor Pro bug, (bad release) all my articles blog post was also indexed with my work telephone number in the end of the url like this:
https://site/blog-post/number/
All these bad urls are now present in the coverage section of my Google Search Control and I want to sanitize this situation for my Seo. How can i mass redirect or deindex or remove this bad url via WP Redirection plugin?
I would like to let all my blog post url WITH /telephonenumber/ in the end to be redirected to my same blog post with the normal url:
from https://site/blog-post/number/
Thanks!
PS: i had the same issue with the /amp/ in the end of the url and I “solved” with this code in my htaccess file but how can i also add this code in your plugin?
RewriteEngine On RewriteCond %{REQUEST_URI} (.+)/amp(.*)$ RewriteCond %{REQUEST_URI} !^/wp-content/(.*)$ RewriteRule ^ %1/ [R=301,L]
- The topic ‘Create redirects that must exclude a part of the url’ is closed to new replies.