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. When URL rewrite can lead to un pretty URLs

    When URL rewrite can lead to un pretty URLs

    Technical SEO Issues
    8 5 1.4k
    • 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.
    • gfiorelli1
      gfiorelli1 last edited by

      Hi Mozzers. I've a client that has done a little bit of mess rewriting the URLs of its site. In fact, also the data base driven URLs are rewritten, but the dev forgot to change the space with "-", so that now the 95% of the URLs are like this one:

      http://www.portalesardegna.com/search/Appartamenti e Residence/

      Obviously not really a pretty URL.

      I am not so sure if this issue has an SEO consecuences (in fact, the site ranks pretty well also with those kind of url), but I am thinking more on usability issue.

      Could you suggest me any easy fix to this rewrite problem?

      1 Reply Last reply Reply Quote 1
      • ThomasHgenhaven
        ThomasHgenhaven last edited by

        I think Rand usually makes a very good point about non-pretty URLs: That there are some lost 2nd order benefits, because people find it hard to share them / link to them.

        There is a great URL rewrite guide here that should help you edit the URLs easily: http://corz.org/serv/tricks/htaccess2.php

        gfiorelli1 1 Reply Last reply Reply Quote 2
        • gfiorelli1
          gfiorelli1 @ThomasHgenhaven last edited by

          Ehehe... I think you were answering to my question while I was doing the same with yours.

          My question was really about those second order benefits you talk about.

          Thanks for link.

          ThomasHgenhaven 1 Reply Last reply Reply Quote 1
          • ThomasHgenhaven
            ThomasHgenhaven @gfiorelli1 last edited by

            Hah yes I noticed the same.

            Ah okay - well I think the second order benefits are quite substantial. Even savvy web users get confuse when facing a URl with blanks in it. They look different and ugly when you paste them. So I would definitely make it a priority to get them changed to something prettier 🙂

            1 Reply Last reply Reply Quote 1
            • petrakraft
              petrakraft last edited by

              Additionally to usability and seo purpose you can let them change the term "search" in the url - they have the english word in all three languages - perhaps they can change it to "vacance", "urlaub" and "holiday".

              gfiorelli1 1 Reply Last reply Reply Quote 3
              • gfiorelli1
                gfiorelli1 @petrakraft last edited by

                Good suggestion 🙂

                1 Reply Last reply Reply Quote 0
                • Getz.pro
                  Getz.pro last edited by

                  To change the URL to exclude the spaces you would simply change the link to include the dash and then parse it out. I must be missing the question as you already know this.

                  If you need to check for old links, the the PHP snippet I posted earlier would help catch and redirect those pages.

                  if (!$_GET['post']) {
                      $location = "http://www.YourSite.com/jobs/";
                         header("HTTP/1.1 301 Moved Permanently");
                      header("Location: {$location}");
                      exit;

                  Cheers

                  RyanOD 1 Reply Last reply Reply Quote 1
                  • RyanOD
                    RyanOD @Getz.pro last edited by

                    Wondering why you would recommend this solution vs. confining such redirects to the .htaccess file. Thanks.

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    • Url rewrite subfolder
                      TheeDigital
                      TheeDigital
                      0
                      6
                      150

                    • High DA url rewrite to your url...would it increase the Ranking of a website?
                      kayintveen_MD
                      kayintveen_MD
                      0
                      6
                      116

                    • How to find original URLS after Hosting Company added canonical URLs, URL rewrites and duplicate content.
                      Nobody1560986989723
                      Nobody1560986989723
                      0
                      2
                      366

                    • Crawl reveals hundreds of urls with multiple urls in the url string
                      irvingw
                      irvingw
                      0
                      5
                      455

                    • Can you 404 any forms of URL?
                      Copstead
                      Copstead
                      0
                      11
                      632

                    • URL rewriting causing problems
                      Dr-Pete
                      Dr-Pete
                      0
                      5
                      535

                    • Can I redirect a URL that has a # in it? How?
                      ASOS
                      ASOS
                      0
                      7
                      422

                    • URL rewriting from subcategory to category
                      ShaMenz
                      ShaMenz
                      0
                      7
                      2.2k

                    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