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. Technical SEO Issues
    4. Handling '?' in URLs.

    Handling '?' in URLs.

    Technical SEO Issues
    6 4 949
    • 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.
    • craigycraig
      craigycraig last edited by

      Adios! (or something),

      I've noticed in my SEOMoz campaign that I am getting duplicate content warnings for URLs with extensions. For example:

      /login.php?action=lostpassword

      /login.php?action=register

      etc.

      What is the best way to deal with these type of URLs to avoid duplicate content penelties in search engines?

      Thanks 🙂

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

        First of all you are not going to get penalized by that!

        You can make this pages nofollow in you robot.txt file. there is no reason for those pages to be indexed.

        /login.php?action=lostpassword

        /login.php?action=register

        Good luck

        craigycraig 1 Reply Last reply Reply Quote 0
        • craigycraig
          craigycraig @DiamondJewelryEmpire last edited by

          And what is the best way to do that? That is the question I'm really asking...

          krissy-cca craigycraig 2 Replies Last reply Reply Quote 0
          • krissy-cca
            krissy-cca @craigycraig last edited by

            Add 'noindex, nofollow' robots meta tag to the login page or use a robots.txt file.

            More info here > http://www.robotstxt.org/meta.html

            DD

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

              Thanks, but whilst this will work for this example it won't work on pages that I do want indexed but on occasions have a '?' component applied. I want to tell a search engine to not index (and ignore) any '?' componant but still index the native URL.

              1 Reply Last reply Reply Quote 0
              • G-Force
                G-Force last edited by

                Hi Craig,

                If you are running Apache with PHP, then you could look into mod_rewrite and do some URL rewriting for your urls to look like /login/lostpassword instead of /login.php?action=lostpassword

                Best regards,
                Guillaume Voyer.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Clean URL vs. Parameter URL and Using Canonical URL...That's a Mouthfull!
                  Roman-Delcarmen
                  Roman-Delcarmen
                  0
                  4
                  170

                • Category URL Pagination where URLs don't change between pages
                  whiteonlySEO
                  whiteonlySEO
                  0
                  7
                  656

                • Strange URL's for client's site
                  everestagency
                  everestagency
                  0
                  3
                  456

                • Unused url 'A' contains frameset - can it damage the other site B?
                  Webrevolve
                  Webrevolve
                  0
                  3
                  109

                • What's the best way to handle Overly Dynamic Url's?
                  GKLA
                  GKLA
                  0
                  2
                  309

                • I'm redesigning a website which will have a new URL format. What's the best way to redirect all the old URLs to the new ones? Is there an automated, fast way to do this?
                  GregFindley.co.uk
                  GregFindley.co.uk
                  0
                  2
                  303

                • How Best to Handle 'Site Jacking' (Unauthorized Use of Someone else's Dedicated IP Address)
                  KeriMorgret
                  KeriMorgret
                  1
                  2
                  713

                • How to handle URL's from removed products?
                  U-Digital
                  U-Digital
                  0
                  5
                  732

                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