The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Intermediate & Advanced SEO
    4. Google is indexing wordpress attachment pages

    Google is indexing wordpress attachment pages

    Intermediate & Advanced SEO
    18 9 15.7k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • TauriU
      TauriU @TauriU last edited by

      i posted my site .htaccess file to pastebin.com. ulr http://pastebin.com/cLVNNCkb

      List of active plug-ins.

      AdRotate

      Better Tag Cloud

      Cleanup Wordpress

      Contact Form 7

      Featured Page Widget

      Flexi Pages Widget

      Link Carousel

      MailChimp Widget

      WordPress Importer

      WordPress SEO by Yoast's

      WP-Table Reloaded

      WP SlimStat

      WP SlimStat ShortCodes

      I hope it help:) those freaking attachment pages are messing up my rankings:)

      1 Reply Last reply Reply Quote 0
      • ClickConsult
        ClickConsult @TauriU last edited by

        OK, there's nothing strange with the htaccess.

        I'd suggest that you now disable all of the plug-ins expect for Yoast's just so you can debug if the issue is due to any other plug-ins installed.

        I know it sounds strange, but I'd also suggest that you go to the permalinks section of the WordPress admin and update the settings - don't change anything at the moment, just update. Sometimes that can reset any issues with the permalinks.

        1 Reply Last reply Reply Quote 0
        • TauriU
          TauriU @mad2k last edited by

          i have already done lots of optimization in Yoast plugin:) don't want to change plugins now. but i try it out when nothing else doesn't work

          1 Reply Last reply Reply Quote 0
          • TauriU
            TauriU @TauriU last edited by

            I tried your suggestion, but it doesn't work unfortunately

            i m using custom permalink structure. /%postname%

            is there any possibility that issue lays in " /%postname% " structure.

            1 Reply Last reply Reply Quote 0
            • ClickConsult
              ClickConsult @TauriU last edited by

              OK, do you happen to have Live HTTP Headers for FireFox (or any other tool/plug-in that'd be able to record all http headers) so you can see what exactly is happening with the redirects?

              If so, could you again paste that over to pastebin.com?

              1 Reply Last reply Reply Quote 0
              • TauriU
                TauriU @TauriU last edited by

                I wasn't able to figure out how this plugin works exactly:( lack of knowledge, on my part.

                My site url is   if this is any help. And if you click here http://tinyurl.com/8x55yh8 you see what google site:domainname.com search bring out. All those attachment pages should redirect to parent post URL's.

                i hope this is at least a bit helpful information

                1 Reply Last reply Reply Quote 0
                • KeriMorgret
                  KeriMorgret last edited by

                  What I have done on my wordpress site is to make sure I'm linking directly to the image and not to the attachment page. If someone clicks on the image, they get a nice large (2000 pixel wide) image by itself, no attachment page or anything. I don't know if that will work for you, but it does work in my case.

                  JohnTulley 1 Reply Last reply Reply Quote 0
                  • JohnTulley
                    JohnTulley @KeriMorgret last edited by

                    Hi Keri, I'm also having problems dozens of Wordpress attachment pages being indexed in google. When you say you link directly to the image do you mean that  when you add an image you use the add 'from URL' option?

                    KeriMorgret 1 Reply Last reply Reply Quote 0
                    • KeriMorgret
                      KeriMorgret @JohnTulley last edited by

                      I insert the image via the image icon, then I put the link in as the URL of the image itself. There's a button that talks about which to link to, can't remember exactly what it's called, but look for that option in the link page.

                      1 Reply Last reply Reply Quote 0
                      • RijoAbraham
                        RijoAbraham last edited by

                        Having same problem, i have so many duplicate pages (more than 350) and all them caused by wordpress attachments. All i can do as keri said link images to direct image url or dont link at all.

                        Right now i'm going to remove all hyper-links from images. Easy way.

                        No wait  i used this option in yoast plugin and it redirects attachments. I don't know why its not working for "TauriU "

                        Tick: Redirect attachment URL's to parent post URL.

                        1 Reply Last reply Reply Quote 0
                        • Chad.Agrawal
                          Chad.Agrawal last edited by

                          I found a great solution for this without using a plugin:

                          http://www.lancelhoff.com/wordpress-disable-image-attachment-page-links/

                          It works for me on my site 🙂

                          Chad

                          yeagerd 1 Reply Last reply Reply Quote 0
                          • yeagerd
                            yeagerd @Chad.Agrawal last edited by

                            Just because you make it yourself and it doesn't install from the control panel.....  doesn't mean it is not a plugin.

                            However, it is a very specialized plugin that will do the job without cluttering anything else up.

                            Make sure you save a copy out to the side in case you loose it in updates.

                            1 Reply Last reply Reply Quote 0
                            • David_ODonnell
                              David_ODonnell last edited by

                              This plugin automatically 301 redirects image attachment pages to the parent post, simply install and activate, done:

                              http://wordpress.org/extend/plugins/attachment-pages-redirect/

                              1 Reply Last reply Reply Quote 0
                              • 1 / 1
                              • First post
                                Last post
                              • Best way to link to 1000 city landing pages from index page in a way that google follows/crawls these links (without building country pages)?
                                lcourse
                                lcourse
                                0
                                7
                                54

                              • Google indexing only 1 page out of 2 similar pages made for different cities
                                Rashi0077
                                Rashi0077
                                0
                                4
                                289

                              • Can you no index a page in Wordpress from just Google news?
                                uSw
                                uSw
                                0
                                5
                                197

                              • Big discrepancies between pages in Google's index and pages in sitemap
                                David-Kley
                                David-Kley
                                0
                                6
                                218

                              • Why are some pages indexed but not cached by Google?
                                john4math
                                john4math
                                0
                                2
                                2.9k

                              • Does Google still don't index Hashtag Links ? No chance to get a Search Result that leads directly to a section of a page? or to one of numeras Hashtag Pages in a single HTML page?
                                Muhammad_Jabali
                                Muhammad_Jabali
                                0
                                3
                                748

                              • I have removed over 2000+ pages but Google still says i have 3000+ pages indexed
                                CleverPhD
                                CleverPhD
                                0
                                6
                                148

                              • Why does Google not index this page?
                                Tompt
                                Tompt
                                0
                                3
                                979

                              Get started with Moz Pro!

                              Unlock the power of advanced SEO tools and data-driven insights.

                              Start my free trial
                              Products
                              • Moz Pro
                              • Moz Local
                              • Moz API
                              • Moz Data
                              • STAT
                              • Product Updates
                              Moz Solutions
                              • SMB Solutions
                              • Agency Solutions
                              • Enterprise Solutions
                              • Digital Marketers
                              Free SEO Tools
                              • Domain Authority Checker
                              • Link Explorer
                              • Keyword Explorer
                              • Competitive Research
                              • Brand Authority Checker
                              • Local Citation Checker
                              • MozBar Extension
                              • MozCast
                              Resources
                              • Blog
                              • SEO Learning Center
                              • Help Hub
                              • Beginner's Guide to SEO
                              • How-to Guides
                              • Moz Academy
                              • API Docs
                              About Moz
                              • About
                              • Team
                              • Careers
                              • Contact
                              Why Moz
                              • Case Studies
                              • Testimonials
                              Get Involved
                              • Become an Affiliate
                              • MozCon
                              • Webinars
                              • Practical Marketer Series
                              • MozPod
                              Connect with us

                              Contact the Help team

                              Join our newsletter
                              Moz logo
                              © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                              • Accessibility
                              • Terms of Use
                              • Privacy