undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • MozCon

      Save on Early Bird tickets and join us in London or New York City

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

Browse the forum for helpful insights and fresh discussions about all things SEO.

  1. Home
  2. SEO Tactics
  3. Intermediate & Advanced SEO
  4. Redirecting Canonical 301s and Magento Website

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

Redirecting Canonical 301s and Magento Website

Intermediate & Advanced SEO
4
22
5.8k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • ClifThompson
    ClifThompson last edited by Nov 28, 2011, 4:06 PM

    I have an issue with a client's website where it has 3700+ pages, but roughly half of them are duplicates. Thankfully, the only difference between the original and the duplictes is the "?print" at the end of each URL (I suppose this is Magento's way of making a printable page version of the same page. I don't know, I didn't build it.)

    My questions is, how can I get all the pages like this

    http://www.mycompany.com/blah.html?print

    to redirect to pages like this...

    http://www.mycompany.com/blah.html

    Also, do they NEED to be Canonical, or will a 301 redirect be sufficient.

    Also, after having done this, if anybody knows, is there a way I can turn that feature off in Magento, because we're expanding our product line, and I don't want to have to keep chasing after these "?print" pages after the fact.

    1 Reply Last reply Reply Quote 0
    • Jeremy_FP
      Jeremy_FP @ClifThompson last edited by Apr 25, 2012, 12:47 PM Apr 25, 2012, 12:47 PM

      Late to this game, but just in case you're still waiting on your dev...

      Magento has an automated add-on system called Magento Connect, and you can access it from your admin (unless the original installer disabled it on your account). You can just use that to install Yoast's plugin. Check out http://www.magentocommerce.com/magento-connect/canonical-url-for-magento.html

      Aside from that, if you are using something after 1.4, you should have canonical built into your store (it's in the config section).

      If you're not using something after 1.4, consider upgrading. It's not painless, but anything prior to 1.4.1 is pretty rough to use. I'm not surprised you've got bugs and general sadness.

      1 Reply Last reply Reply Quote 0
      • THB
        THB @ClifThompson last edited by Nov 28, 2011, 6:04 PM Nov 28, 2011, 6:04 PM

        Hehe, hey now, not all us developers are lazy 😉

        You know your system better than any of us do.  My 1. and 2. are just the best-case order in which to get things done.  Do what works for you and your site.

        1 Reply Last reply Reply Quote 0
        • ClifThompson
          ClifThompson @ClifThompson last edited by Nov 28, 2011, 5:29 PM Nov 28, 2011, 5:29 PM

          like I said, I will email your solution concerning the plugin to my web admin guy, but the reason why I'm kind of reticent to do that is it's more a matter of bureacracy (to be sensitive to his time constraints) rather than technical or lack of know-how. I want to get it done right, but I also want to get it done in a timely manner. But I will forward this to him. Thanks you sir.

          1 Reply Last reply Reply Quote 0
          • SEOKeith
            SEOKeith @ClifThompson last edited by Nov 28, 2011, 5:18 PM Nov 28, 2011, 5:18 PM

            I don't understand why you don't just use the rel="canonical" plugin I mentioned above... ?

            1 Reply Last reply Reply Quote 0
            • ClifThompson
              ClifThompson @ClifThompson last edited by Nov 28, 2011, 5:18 PM Nov 28, 2011, 5:18 PM

              thank you sir....I'll try to avoid the htaccess route then.

              1 Reply Last reply Reply Quote 0
              • ClifThompson
                ClifThompson @ClifThompson last edited by Nov 28, 2011, 5:15 PM Nov 28, 2011, 5:15 PM

                Yeah I guess this is the only way to go. Now I just got to get the webmaster to get around to it. (sigh)...

                1 Reply Last reply Reply Quote 0
                • THB
                  THB @ClifThompson last edited by Nov 28, 2011, 5:17 PM Nov 28, 2011, 5:13 PM

                  Yes to your first questions.  Here's the process for each (as I see it):

                  1. Fix/remove the ability for system to generate ?print URL's and implement canonical tags; open beer and wait 'til search engines sort things out.  Nothing more you can do here.

                  2. No fix to system so we still have ?print URL's.  In this case, setup the 301's in your .htaccess file; however, as long as the system is still generating these ?print URLs, you will have to keep the redirects in the .htaccess in tact, permanently.

                  Untested:

                  RewriteEngine On

                  RewriteBase /

                  RewriteRule ^([^/]*).html?print$ /$1.html [L,NC,R=301]

                  1 Reply Last reply Reply Quote 1
                  • ClifThompson
                    ClifThompson @ClifThompson last edited by Nov 28, 2011, 5:13 PM Nov 28, 2011, 5:13 PM

                    I guess my question now is, just doing the htaccess route is a bad idea? in both 301s AND canonicals or just 301s? I guess I'm not looking for easy, but economical. Thanks for your responses.

                    1 Reply Last reply Reply Quote 0
                    • SEOKeith
                      SEOKeith @ClifThompson last edited by Nov 28, 2011, 5:11 PM Nov 28, 2011, 5:11 PM

                      I agree with THB on this, use rel="canonical" you simply want to say to the search engines "Hey this is the preferred URL for my content".

                      301's are for saying "Hey this page has permanently moved to a new page/site"

                      I would use the rel="canonical" plugin I posted for you above, it will automatically add the canonical tag for you, job done.

                      1 Reply Last reply Reply Quote 0
                      • ClifThompson
                        ClifThompson @THB last edited by Nov 28, 2011, 5:07 PM Nov 28, 2011, 5:06 PM

                        Yeah, I know, right. The problem is, I found this out only AFTER I bought the PRO version and mapped out the entirety of the site. Some of those ?print URLs are now indexed in the SEs. So I agree with nipping this problem in the bud (or the root, whichever one prefers), but I still need to know how to do it via the htaccess. In other words, I have to go backwards and take care of the rankings, THEN figure out how to turn it off (and I can go to the Magento forums for that).

                        1 Reply Last reply Reply Quote 0
                        • ClifThompson
                          ClifThompson @ClifThompson last edited by Nov 28, 2011, 5:03 PM Nov 28, 2011, 5:03 PM

                          So, assuming this works, can I eventually remove the ".html?print" versions of the pages after the SEs have changed the URLs in their indices?

                          also, I'm not getting the impression it's going to save me time on specifying different pages (it may save time, I'm not sure), but in the chance it doesn't or the plugin fails to do as advertised, what is the htaccess option for this? Because at least, in this case, I can see the immediacy in it AND you can do canonical rewrites FROM the htaccess.

                          My situation is, I'm not  THAT advanced in wildcards to make this happen (otherwise, I'd do it myself via just trial and error until it works) AND I myself don't have access to the site (the webmaster does, whose part time) and I have a choice between "Hey, here's several (or one line) of code to put into htaccess to resolve this problem" OR "can you go through and implement this plug to do the Canonical redirects on every page, oh and by the way, please back up first."

                          So it's not merely JUST a technical problem or a know-how problem, it's also a bureaucratic problem that can mean the difference between getting it done in a few minutes, and it could take two weeks to make happen depending on this person's perception.

                          1 Reply Last reply Reply Quote 0
                          • THB
                            THB @ClifThompson last edited by Nov 28, 2011, 5:01 PM Nov 28, 2011, 5:01 PM

                            Just to clarify.  If there is in fact no difference between the pages (as you originally stated), then please just use the canonical tag.  As much as you might want to setup 301 redirects, they would not be the way to go in this case.  Trust me.

                            Otherwise, here is what I would do, honestly: find out why the ?print is causing information to be displayed improperly in some cases.  If it's accessing the same db tables using the same queries, then that shouldn't be happening.  I'd fix that, and implement the canonical tags, and wait it out.  That would be the easiest approach and most beneficial with the least impact to your site and any rankings.

                            If this is something your not capable of fixing (not sure if you're proficient with coding, etc), then you can setup 301's as a 'hack', but they should not be left in permanently as the process in which I stated just above is the best way to resolve the issue.

                            In order to assist you with any .htaccess markup, you'll need to provide some examples of your URL's, and whether they have any common identifiers.

                            1 Reply Last reply Reply Quote 0
                            • THB
                              THB @THB last edited by Nov 28, 2011, 4:52 PM Nov 28, 2011, 4:52 PM

                              OK - I was basing my answers on what you said, "the only difference between the original and the duplictes is the "?print" at the end of each URL"

                              If there is in fact different content on each page, and the ?print page is the one with the errors, then you should remove the ability for ?print pages to even be generated in the first place instead of having them constantly redirecting user/bots.  Forever 301 re-directions can hurt you down the road.

                              Once you've removed the ability for users/bots to find and access the ?print pages, then setup the 301's and insert the canonical tags.

                              1 Reply Last reply Reply Quote 0
                              • SEOKeith
                                SEOKeith @ClifThompson last edited by Nov 28, 2011, 5:29 PM Nov 28, 2011, 4:46 PM

                                It looks like this plugin will add the rel="canonical" tag for you automatically: http://yoast.com/tools/magento/canonical/

                                View the source code after you have installed it to confirm it's working as expected.

                                1 Reply Last reply Reply Quote 1
                                • ClifThompson
                                  ClifThompson @THB last edited by Nov 28, 2011, 4:43 PM Nov 28, 2011, 4:43 PM

                                  I was answering this Kjay's response while this one was coming down the pipeline. I get you on the fact if they were TRULY identical, but the reason I wanted to do the 301s is because more than likely, the Magento engine is faulty, and I've found situaitons where the prices are different between the two versions, or the images and text haven't been updated, etc. etc., hence, the need for a 301

                                  1 Reply Last reply Reply Quote 0
                                  • ClifThompson
                                    ClifThompson @SEOKeith last edited by Nov 28, 2011, 4:40 PM Nov 28, 2011, 4:40 PM

                                    I guess my question is, if I use JUST the canonical, then the SEs will get around to changing the address, but will still go to the "?print" pages until that time.

                                    Also, the Magento  help aide on that said I had to do it with EACH individual page. It's going to be especially time-consuming to have to go back out into the admin, go back into the admin, and check to see EVERY time the page that I'm canonizing is the right html version. I think this is where accessing the htaccess will save me a bunch of time (I still have to change the title tags on the remaining original 1500 pages, as well as find out from the Magento site, to access the H1 tags in the templates).

                                    If I use the basic 301 redirect, I get the benefit of the immediate redirect, but I fail to see the downside of having to "endure" the 301 redirect other than additional rules for the browser to access the server. I eventually want to get RID of these "?print" pages because I'm getting the feeling that prices won't update as reliably on the ".html?print" version of the pages, update images (which we HAVE had trouble with in the past) etc. etc. And there's also the possibility that people may still access those ?print pages even if I did just do a canonical. It's just better to admin and SEO 1500+ pages as opposed to 1500+ pages and their duplicates.

                                    I guess, what I'm looking for is, more than likely, the syntax command that's going to include a wildcard function to accomodate everything between "http://www.mycompany.com/" and ".html?print" or ".html". What would that look like?

                                    SEOKeith THB ClifThompson Jeremy_FP 12 Replies Last reply Apr 25, 2012, 12:47 PM Reply Quote 0
                                    • SEOKeith
                                      SEOKeith @THB last edited by Nov 28, 2011, 4:38 PM Nov 28, 2011, 4:38 PM

                                      Agreed 🙂

                                      1 Reply Last reply Reply Quote 0
                                      • THB
                                        THB @SEOKeith last edited by Nov 28, 2011, 4:35 PM Nov 28, 2011, 4:35 PM

                                        Ya, this is what I was talking about.  Just a standard canonical html tag inserted into the framework.

                                        That will clear everything up for you (might take a wee bit, but Google will recognize it right away).

                                        No need for .htaccess whatsoever since the content is identical.  If the content were different, ie. the ?print page showed a completely different style format, then sure, setup some 301's to get the user's to the right page.  But not needed for your situation.

                                        SEOKeith ClifThompson THB 4 Replies Last reply Nov 28, 2011, 5:06 PM Reply Quote 0
                                        • SEOKeith
                                          SEOKeith last edited by Nov 28, 2011, 4:29 PM Nov 28, 2011, 4:29 PM

                                          I would just add:

                                          rel="canonical" href="http://www.mycompany.com/blah.html" />

                                          No need to add 301's.

                                          This might be useful it's Magento specific: http://www.magentocommerce.com/wiki/adding_canonical_url_to_cms_pages

                                          THB ClifThompson 2 Replies Last reply Nov 28, 2011, 4:40 PM Reply Quote 2
                                          • ClifThompson
                                            ClifThompson @THB last edited by Nov 28, 2011, 4:27 PM Nov 28, 2011, 4:27 PM

                                            Okay, so if I were in the htaccess file, what would it look like?

                                            would it be a Query string rewrite?

                                            RewriteEngine On

                                            _ RewriteBase /_

                                            RewriteCond %{QUERY_STRING} ^(*)$

                                            RewriteRule ^()html?print$ http://www.mycompany.com/()html$ [R=301]

                                            or just a straight one line redirect

                                            Redirect 301 /()html?print http://www.mycompany.com/().html

                                            1 Reply Last reply Reply Quote 0
                                            • THB
                                              THB last edited by Nov 28, 2011, 4:14 PM Nov 28, 2011, 4:14 PM

                                              Canonical will suffice as it is basically a 301 anyways.  Cleaner too as there is no actual redirect for the user, or bot, to endure.

                                              You can also set it up in Google Webmaster Tools under 'Site Configuration > URL Parameters' to ignore that parameter; however, using the canonical tag will more than suffice in this case.

                                              ClifThompson 1 Reply Last reply Nov 28, 2011, 4:27 PM Reply Quote 0
                                              • 1 / 1
                                              1 out of 22
                                              • First post
                                                1/22
                                                Last post

                                              Got a burning SEO question?

                                              Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                                              Start my free trial


                                              Browse Questions

                                              Explore more categories

                                              • Moz Tools

                                                Chat with the community about the Moz tools.

                                              • SEO Tactics

                                                Discuss the SEO process with fellow marketers

                                              • Community

                                                Discuss industry events, jobs, and news!

                                              • Digital Marketing

                                                Chat about tactics outside of SEO

                                              • Research & Trends

                                                Dive into research and trends in the search industry.

                                              • Support

                                                Connect on product support and feature requests.

                                              • See all categories

                                              Related Questions

                                              • Wavelength_International

                                                Should I apply Canonical Links from my Landing Pages to Core Website Pages?

                                                I am working on an SEO project for the website: https://wave.com.au/ There are some core website pages, which we want to target for organic traffic, like this one: https://wave.com.au/doctors/medical-specialties/anaesthetist-jobs/ Then we have basically have another version that is set up as a landing page and used for CPC campaigns. https://wave.com.au/anaesthetists/ Essentially, my question is should I apply canonical links from the landing page versions to the core website pages (especially if I know they are only utilising them for CPC campaigns) so as to push link equity/juice across? Here is the GA data from January 1 - April 30, 2019 (Behavior > Site Content > All Pages😞

                                                Intermediate & Advanced SEO | May 14, 2019, 7:32 PM | Wavelength_International
                                                0
                                              • kirbyf

                                                Website Redesign, 301 Redirects, and Link Juice

                                                I want to change my client’s ecommerce site to Shopify. The only problem is that Shopify doesn’t let you customize domains. I plan to: keep each page’s content exactly the same keep the same domain name 301 redirect all of the pages to their new url The ONLY thing that will change is each page’s url. Again, each page will have the exact same content. The only source of traffic to this site is via Google organic search and sales depend on the traffic. There are about 10 pages that have excellent link juice, 20 pages that have medium link juice, and the rest is small link juice. Many of our links that have significant link juice are on message boards written by people that like our product. I plan to change these urls and 301 redirect them to their new urls. I’ve read tons of pages online about this topic. Some people that say it won’t effect link juice at all, some say it will might effect link juice temporarily, and others are uncertain. Most answers tend to be “You should be good. You might lose some traffic temporarily. You might want to switch some of your urls to the new structure to see how it affects it first.” Here’s my question: 1) Has anyone ever done changed a url structure for an existing website with link juice? What were your results and do you have a definitive answer on the topic? 2) How much link juice (if any) will be lost if I keep all of the exact content the same but only change each page’s url? 3) If link juice is temporarily lost and then regained, how long will it be temporarily lost? 1 week? 1 month? 6 months? Thanks.

                                                Intermediate & Advanced SEO | Sep 22, 2015, 9:09 AM | kirbyf
                                                0
                                              • MarkWill

                                                Blog subdomain not redirecting

                                                Over the last few weeks I have been focused on fixing high and medium priority issues, as reported by the Moz crawler, after a recent transition to WordPress. I've made great progress, getting the high priority issues down from several hundred (various reasons, but many duplicates for things like non-www and www versions) to just five last week. And then there's this weeks report. For reasons I can't fathom, I am suddenly getting hundreds of duplicate content pages of the form http://blog.<domain>.com</domain> (being duplicates with the http://www.<domain>.com</domain> versions). I'm really unclear on why these suddenly appeared. I host my own WordPress site ie WordPress.org stuff. In Options / General everything refers to http://www.<domain>.com</domain> and has done for a number of weeks. I have no idea why the blog versions of the pages have suddenly appeared. FWIW, the non-www version of my pages still redirect to the www version, as I would expect. I'm obviously pretty concerned by this so any pointers greatly appreciated. Thanks. Mark

                                                Intermediate & Advanced SEO | May 13, 2015, 2:36 PM | MarkWill
                                                0
                                              • HashtagHustler

                                                Moving half my website to a new website: 301?

                                                Good Morning! We currently have two websites which are driving all of our traffic. Our end goal is to combine the two and fold them into each other. Can I redirect the duplicate content from one domain to our main domain even though the URL's are different. Ill give an example below. (The domains are not the real domains). The CEO does not want to remove the other website entirely yet, but is willing to begin some sort of consolidation process. ABCaddiction.com is the main domain which covers everything from drug addiction to dual diagnosis treatment. ABCdualdiagnosis.com is our secondary website which covers everything as well. Can I redirect the entire drug addiction half of the website to ABCaddiction.com? With the eventual goal of moving everything together.

                                                Intermediate & Advanced SEO | Aug 22, 2014, 4:49 AM | HashtagHustler
                                                0
                                              • CommT

                                                Should I redirect my xml sitemap?

                                                Hi Mozzers, We have recently rebranded with a new company name, and of course this necessitated us to relaunch our entire website onto a new domain. I watched the Moz video on how they changed domain, copying what they did pretty much to the letter. (Thank you, Moz for sharing this with the community!) It has gone incredibly smoothly. I told all my bosses that we may see a 40% reduction in traffic / conversions in the short term. In the event (and its still very early days) we have in fact seen a 15% increase in traffic and our new website is converting better than before so an all-round success! I was just wondering if you thought I should redirect my XML sitemap as well? So far I haven't, but despite us doing the change of address thing in webmaster tools, I can see Google processed the old sitemap xml after we did the change of address etc. What do you think? I know we've been very lucky with the outcome of this rebrand but I don't want to rest on my laurels or get tripped up later down the line. Thanks everyone! Amelia

                                                Intermediate & Advanced SEO | Apr 11, 2014, 1:01 PM | CommT
                                                0
                                              • SCW

                                                Redirect at Registrar or Server

                                                Hi folks, I have run into a situation were a new client has 3 TLDs (e.g. mycompany.com, mycompany.org and mycompany.biz), all with the same content. They are on a Windows IIS environment, which I am not familiar with. Until now, all of my clients have been Linux/Apache environment, so I always dealt with these issues utilizing htaccess. Currently all resolve to the same IP, but the URL remains the same in the browser address field (e.g. if you type-in mycompany.org - it remains as such). We want the .org and .biz version to 301 Redirect to the .com TLD. I am wondering what the best practice might be in this situation? Could we simply redirect at the registrar level or would implementation at the server level be best? If so, I would really appreciate an example from someone with experience implementing redirects on IIS. Thank you!

                                                Intermediate & Advanced SEO | Dec 19, 2013, 1:00 PM | SCW
                                                0
                                              • Seamoose

                                                301 Redirection and apostrophes in URLs

                                                Hi I am experiencing trouble getting any redirects with apostrophes in the URLs to 301 redirect in order to eliminate 404 errors. I have tried replacing the instance of the apostrophe in the source URL field to %27 and variations of this but to no avail. The site is a wordpress site (the old URLS are legacies from the old Business Catalyst site) and I am using the redirection plug in. I have gone into some detail with a helpful soul here http://wordpress.org/support/topic/how-to-deal-with-apostrophes-in-source-url but unfortunately to no result. If anyone has any idea how to solve this puzzle I would be grateful for the help. Example: http://www.tesselaars.com/blog/Inside_Flowers/post/Online_Marketing_for_Florists_Part_1%E2%80%93_A_Website_You_Won%27t_Regret/

                                                Intermediate & Advanced SEO | May 1, 2013, 2:17 AM | Seamoose
                                                0
                                              • NakulGoyal

                                                Wildcard Redirects & Canonical Tags

                                                I have an interesting situation. Current URLs Example1: www.domain.com/red-widgets-cid-1234.html
                                                www.domain.com/red-widgets-cid-1234-1.html
                                                www.domain.com/red-widgets-cid-1234-1-1.html Canonical on All Above URLs:
                                                www.domain.com/red-widgets-cid-1234.html New URL:
                                                www.domain.com/red-widgets-cid-4567.html Current URLs Example2: www.domain.com/red-widgets-cid-1234+10.html
                                                www.domain.com/red-widgets-cid-1234+10-1.html
                                                www.domain.com/red-widgets-cid-1234+10-1-1.html Canonical on All Above URLs:
                                                www.domain.com/red-widgets-cid-1234+10.html New URL:
                                                www.domain.com/red-widgets-cid-6789.html Current URLs Example3: www.domain.com/red-widgets-cid-1234+10+5.html
                                                www.domain.com/red-widgets-cid-1234+10+5-1.html
                                                www.domain.com/red-widgets-cid-1234+10+5-1-1.html Canonical on All Above URLs:
                                                www.domain.com/red-widgets-cid-1234+10+5.html New URL:
                                                www.domain.com/american-red-widgets-cid-6789+5.html I want to make sure all variations of the above URL redirect to the new URLs.  However, as you see in Example 3, we are dealing with variables that are passed on. (+5 in this case). Question 1: What wildcard 301 redirect / regular expression can I use to tackle these ? Question 2: If we redirect www.domain.com/red-widgets-cid-1234+10+5.html to www.domain.com/red-widgets-cid-6789+5.html and www.domain.com/red-widgets-cid-6789+5.html contains the canonical tag www.domain.com/american-red-widgets-cid-6789+5.html, any concerns or red flags here ?

                                                Intermediate & Advanced SEO | Feb 5, 2013, 11:13 PM | NakulGoyal
                                                0

                                              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
                                              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 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                                              • Accessibility
                                              • Terms of Use
                                              • Privacy

                                              Looks like your connection to Moz was lost, please wait while we try to reconnect.