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. Url rewrite subfolder

    Url rewrite subfolder

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

      Hi,

      How can i rewrite

      example.com/example1/example2/example3

      to

      example.com/example3

      And is there tools or software that can generate url rewrite... (not a plugin)

      Thanks !

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

        Are you a PHP developer yourself? If not, I am sure you need a help of web programmer to do this for you.

        They'll write a rewrite code in .htaccess and make this works.

        Besides, there are a few .htaccess redirect generator tools, but I am not sure how accurate they are:

        http://www.htaccessredirect.net/

        http://beamusup.com/generate-htaccess/

        http://www.webconfs.com/htaccess-redirect-generator.php

        Hope this helps

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

          Hi,

          I know php but i dont consider myself as a php developer.

          I am actually searching for the line of code to paste in my .htaccess 🙂

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

            Aren't these tools of any help?

            I think, you can achieve some basic redirection with the help of aforementioned tools, but of-course not the complex ones

            Or, you can simply try this:

            Redirect 301 /example1/example2/example3 http://www.example.com/example3

            Hope this helps

            1 Reply Last reply Reply Quote 0
            • max.favilli
              max.favilli last edited by

              In my opinion this is not the right place for questions like this, try something like this: http://stackoverflow.com/search?q=htaccess+remove+directory

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

                Options +FollowSymLinks
                RewriteEngine on
                RewriteBase /example1/
                RewriteRule ^example2/(.+)$ /$1 [L,R=301,NC]

                Try this.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • High DA url rewrite to your url...would it increase the Ranking of a website?
                  kayintveen_MD
                  kayintveen_MD
                  0
                  6
                  116

                • Changing a blog url from subdomain to subfolder
                  ChrisHolgate
                  ChrisHolgate
                  0
                  7
                  392

                • Should we introduce subfolders into the URLs on a new site?
                  oneresult
                  oneresult
                  0
                  2
                  515

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

                • Need Help with MAGENTO - URL rewrite
                  Prime85
                  Prime85
                  0
                  9
                  1.4k

                • Difference between URL Rewrites and 301 Redirects for Rankings
                  Gaveltek-173238
                  Gaveltek-173238
                  0
                  4
                  570

                • URL rewrite question
                  danielmckay7
                  danielmckay7
                  0
                  6
                  890

                • Rel=Canonical to Rewrite or original URL?
                  PathInteractive
                  PathInteractive
                  0
                  3
                  994

                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