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. Intermediate & Advanced SEO
    4. Preserving URL Structure from Os Commerce to Magento

    Preserving URL Structure from Os Commerce to Magento

    Intermediate & Advanced SEO
    6 4 1.2k
    • 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.
    • WebServiceConsulting.com
      WebServiceConsulting.com last edited by

      I have a website that is built on OS Commerce and I am planning to transition to Magento.

      I was told that the transition to Magento would change my url structure.

      How do I preserve my current url structure while migrating to the Magento platform so that I do not lose my backlink profile.

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

        How about a rewrite rule?

        To redirect products, you can use something like this:

        OSCommerce URL: http://www.domain.com/your-product-name-p-123.html

        Magento url (assuming product names are the same when importing the products): http://www.domain.com/your-product-name.html

        .htaccess:

        RewriteRule ^(.*)-p-(.*)\.html$ $1.html [L]

        However, I would actually use a redirect, you loose some link juice, but it's minimum (with something like this):

        RewriteRule ^(.*)-p-(.*)\.html$ $1.html [R=301,L]

        Hope that helps!

        1 Reply Last reply Reply Quote 1
        • WebServiceConsulting.com
          WebServiceConsulting.com last edited by

          I always thought that if you changed a URL, whatever backlinks that linked to that URL are lost (or re-directed to the new link) but that all juice that was given to that page is lost.

          Can anyone elaborate on this topic?

          FedeEinhorn 1 Reply Last reply Reply Quote 0
          • FedeEinhorn
            FedeEinhorn @WebServiceConsulting.com last edited by

            If you do a 301 redirect then the juice isn't lost. You lose a bit in the process but not all. Just as it was a regular link in the middle between the link clicked and your Website.

            For your viewing pleasure:

            watch?v=Filv4pP-1nw

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

              I will go with the suggestion of Rewrite rule plus if you think that the URL structure on osCommerce is less SEO friendly then Magento then you can the URL structure and use 301 redirect so that link juice didn’t lost plus no user see a 404 page while visiting the website.

              Hope this helps!

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

                How many products does your store have?

                Magento have an option call "URL Rewrite Management" (Catalog > URL Rewrite Management)

                If you have a few products you can change the URLs manually to match OsCommerce.

                If you have  a lot products you should:

                1 - Export SKU and URL from OsCommerce to CSV. (ask a PHP developer to make script for you)

                2 - Import the spreadsheet to magento  with the columns named: SKU and  url_key

                If your site is really big you will need a third part magento extension to import the categories. Magento do not have any native function to import categories.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • What is the best structure for paginating comment structures on pages to preserve the maximum SEO juice?
                  0
                  1
                  35

                • URL structure for SEO
                  vcj
                  vcj
                  0
                  6
                  234

                • URL Structure For E-commerce Sites
                  Andy-Halliday
                  Andy-Halliday
                  1
                  3
                  3.2k

                • URL Structure
                  BlueprintMarketing
                  BlueprintMarketing
                  0
                  3
                  287

                • Is this URL Structure SPAMMY
                  AlanBleiweiss
                  AlanBleiweiss
                  0
                  4
                  247

                • Overly-Dynamic URLs & Changing URL Structure w Web Redesign
                  Marcus_Miller
                  Marcus_Miller
                  0
                  2
                  257

                • Best url structure
                  evolvingSEO
                  evolvingSEO
                  0
                  8
                  1.1k

                • Changing URL Structure
                  NeilTompkins
                  NeilTompkins
                  0
                  11
                  865

                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