I need help with one redirect, unfortunately I don't have idea how to write this for Wordpress. Should be .htaccess redirect or function in functions.php? Noob I am, so please help :)
OK, I have post, for example
now, i have plugin that adding image to post as
mysite.com/post1/thumb_image1.jpg but for some reason this plugin also adding page
mysite.com/post1/mysite.com/post1/image1.jpgTHUMB that does not exist, so giving me 404 I need to sort. Now I can not remove this plugin, but how can I say to google not to crawl link
and if it does (or someone accidentally find it) than do 301 on that link and redirect it to parent post, so example
so something like Redirect 301
mysite/com?ABC There are a lot of posts so this should apply to any post in my website.
I think that above is possible through some kind of redirect, but I read like 60 pages and tried so many options and nothing works. now got headache of all this code, so please help.