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. Getting a Vanity (Clean) URL indexed

    Getting a Vanity (Clean) URL indexed

    Technical SEO Issues
    4 3 772
    • 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.
    • Digi1234
      Digi1234 last edited by

      Hello, I have a vanity (clean looking) URL that 302 redirects to the ugly version. So in other words

      http://www.site.com/url

      302 >>>

      http://www.site.com/directory/directory/url.aspx

      What I'm trying to do is get the clean version to show up in search. However, for some reason Google only indexes the ugly version.

      cache:http://www.site.com/directory/directory/url.aspx is showing the ugly URL as cached and cache:http://www.site.com/url is showing not cached at all.

      Is there some way to force Google to index the clean version? Fetch as Google for the clean URL only returns a redirect status and canonicalizing the ugly to the  clean would seem to send a strange message because of the redirect back to the ugly.

      Any help would be appreciated.

      Thank you,

      1 Reply Last reply Reply Quote 0
      • Devanur-Rafi
        Devanur-Rafi last edited by

        Hi,

        You need to go in for server-side URL rewrites in this case. With URL rewrite in place, the URL in the address bar for the visitor will be your SEO and user-friendly, vanity URL and the same will be in search engines' indices there by accomplishing your mission. Then you might want to make sure that your old, ugly URL passes on all its SEO goodies to the vanity URL. For this, you can go in for a 301 redirection from the ugly URL to the vanity URL.

        Here is a beautiful article from Moz: http://moz.com/blog/url-rewrites-and-301-redirects-how-does-it-all-work

        Hope it helps. Good Luck.

        Best regards,

        Devanur Rafi

        Digi1234 1 Reply Last reply Reply Quote 1
        • Davinia22
          Davinia22 last edited by

          Agree with Devanur - you need to use a 301 permanent redirect not a 302 temporary redirect.

          1 Reply Last reply Reply Quote 0
          • Digi1234
            Digi1234 @Devanur-Rafi last edited by

            Thank you, great answer.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • URLs dropping from index (Crawled, currently not indexed)
              DmitriiK
              DmitriiK
              0
              2
              38

            • SEO URLs: 1\. URLs in my language (Greek, Greeklish or English)? 2\. Αt the end it is good to put -> .html? What is the best way to get great ranking?
              marioskal
              marioskal
              0
              7
              662

            • Clean URL vs. Parameter URL and Using Canonical URL...That's a Mouthfull!
              Roman-Delcarmen
              Roman-Delcarmen
              0
              4
              170

            • Do URLs with canonical tags get indexed by Google?
              zasite
              zasite
              0
              5
              2.4k

            • Vanity URLs are being indexed in Google
              seogirl22
              seogirl22
              1
              3
              879

            • If a URL canonically points to another link, is that URL indexed?
              Coolguyry
              Coolguyry
              0
              4
              120

            • I can see one url and get one url ( after copying) urgent pls!
              KeriMorgret
              KeriMorgret
              0
              2
              634

            • Why is a 301 redirected url still getting indexed?
              dim_d
              dim_d
              0
              6
              1.1k

            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