Redirect attachment URLs to parent post URL
-
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.
- The topic ‘Redirect attachment URLs to parent post URL’ is closed to new replies.