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
            • 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

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

            • URL Change, Old URLs Still In Index
              ShawnW
              ShawnW
              0
              3
              118

            • Is there a way to index important pages manually or to make sure a certain page will get indexed in a short period of time??
              rijwielcashencarry040
              rijwielcashencarry040
              0
              7
              111

            • Some URLs in the sitemap not indexed
              Mase
              Mase
              0
              8
              123

            • Decrease in index URLs, increase in URLs blocked by robots and drop in traffic
              pugh
              pugh
              0
              6
              2.4k

            • Why are my URL's with a trailing slash still getting indexed even though they are redirected in the .htaccess file?
              irvingw
              irvingw
              0
              3
              288

            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