TwentyEleven theme and attachment_id posts
-
If Murphy’s Law holds true then the moment I post this the answer will become crystal clear and I’ll realize I overlooked the obvious.
I am trying to prevent this:
https://gaile.ca/?attachment_id=86
My images don’t show up if you search the image name under google search “images” because I have them blocked in robots.txt but if you put the image name into google and hit search (with the default being “web”), then these pages called “attachment_id” show up.
I am looking for a way to redirect these pages back to gaile.ca – the images they show are the header images that show up in random rotation in the header.
I found a way to redirect for post specific images but that won’t apply in this instance.
My php skills are rusty and basic so I’m not quite sure what I need to change, despite looking around all morning for a solution.
Anyone know what to do? Thanks in advance!
- The topic ‘TwentyEleven theme and attachment_id posts’ is closed to new replies.