I would really like this to be: www.website.com/images/photoname
Any way to make this happen? Googling for it is pretty hard because almost everything I encounter is about people wanting to forward attachment URLs or get rid of them completely, which isn’t what I want.
]]>However, I’ve checked on Google this morning and now I’m getting this page instead: https://bardouly.com/wp-content/uploads/2020/04/yoga.jpg.
What is the quickest way to ensure the correct page is showing and not this attachment URL?
I’ve read about the Yoast purge plugin, does anyone know how fast this works to remove the attachment URLs? Has this worked for peeps?
Any advice on how best to resolve it in short term, for example, does it make sense to sumbit URL to Google Search Console and ask them to hide it?
]]>Do I need to do something else?
P.S. I would have asked at the Yoast SEO: Search Index Purge plugin, but no one has replied to questions there in many months.
]]>As we all know that Yoast SEO reported a bug with the Attachment URLs and many sites affected.
My site also affected with that bug and deranked!
According to the instructions provided by Yoast to fix that issue, I have enabled the redirect to Attachment itself and installed the purge Index plugin.
The Redirect is working fine as well as the purge plugin. In my webmaster console, I can see the Attachment URLs returning 401.
The Confusion I had
It’s been almost 5 or 6 months I’ve installed the purge index plugin and applied the redirect but I can’t see any improvement in Rank of my website. Search results are moving down day by day, Images are submitted but not indexed.
HELP ME OUT HOW CAN I GET BACK MY RANK!
Have a look to my SITEMAP REPORT
Waiting for your kind Reply!
]]>As we all know that Yoast SEO reported a bug with Attachment URLs and many of the sites were affected.
My WordPress website also affected with that bug!
]]>I found out Google was displaying attachment URL’s and set the options in Yoast (which was already installed) to redirect. But nothing happends, the attachment page still opens. Am I missing something?
]]>Attachments to posts are stored in the database as posts, this means they're accessible under their own URLs if you do not redirect them, enabling this will redirect them to the post they were attached to.
I dont know if i understand it correctly but i thought this will work in my case.
I have problem where every media that has been uploaded in wp shows as user post that can be accessed trough http. For example header logo name is : logo-main.svg
Now anyone knowing this can type domain.com/logo-main
And weird blank wp post page shows the image published by admin …
By using redirect i had hope that it will actually redirect to homepage.
I dont want to make 301 for EVERY media(not only images) used on site.
I want to completely get rid of it … i already asked on main WP thread what i can do about it.
]]>sitemamdotcom/images/attachment-title
(i want to trim the title to three to four words only because long title does not look good).
Structure 2:
sitemamedotcom/z/5digits/attachment-title-3words/5digits
(random 5 digits in both sides not the same, different digits in all attachment)
structure 3:
sitenamedotcom/attachment-title-3words/attachment-id/
I want to show attachment pages as individual posts, the long url/slug making it difficult for me to copy the link and share.
I am trying to create a link to an attached pdf. The following code works with the exception of when i attempt to put the [field url] within an tag. In this case it returns the post URL and not the attachment URL. Can you help ?
Thanks, Dean
[if attached]
[attached]
[-if field=url end="pdf"]
[field url]</br>
<a href="[field url]" target="_blank">PDF</a>
[-else]
This post has no PDF attachments
[/-if]
[/attached]
[else]
This post has no attachments.
[/if]
https://www.ads-software.com/plugins/custom-content-shortcode/
]]>
get_post_meta($post_id,'_my_image',1);
?https://www.ads-software.com/plugins/cmb2/
]]>