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.

      Save big on Moz Pro!
      Limited time offer

      Save big on Moz Pro!

      See pricing
    • 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.

      Access the Moz API for less
      Save on Moz Data

      Access the Moz API for less

      Hurry - ends Dec 13th!
    • 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.

      • SEO Q&A

        Insights & discussions from an SEO community of 500,000+.

      Save 20% on all Moz Academy courses
      Limited time offer

      Save 20% on all Moz Academy courses

      Level up your SEO
    • 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.

      Explore Moz updates & save up to 40%
      Big Savings!

      Explore Moz updates & save up to 40%

      See the latest
    • 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. Technical SEO
    4. Understanding Redirects and Canonical Tags in SEO: A Complex Case

    Understanding Redirects and Canonical Tags in SEO: A Complex Case

    Technical SEO
    technical seo canonical redirects seo link building
    2
    2
    130
    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.
    • chueneke
      chueneke Subscriber last edited by

      Hi everyone,

      nothing serious here, i'm just playing around doing my experiments 🙂
      but if any1 of you guys understand this chaos and what was the issue here, i'd appreciate if you try to explain it to me.

      I had a page "Linkaufbau" on my website at https://chriseo.de/linkaufbau.

      My .htaccess file contains only basic SEO stuff:

      # removed ".html" using htaccess
      RewriteCond %{THE_REQUEST} ^GET\ (.*)\.html\ HTTP
      RewriteRule (.*)\.html$ $1 [R=301,L]
      
      # internally added .html if necessary
      RewriteCond %{REQUEST_FILENAME}.html -f
      RewriteCond %{REQUEST_URI} !/$
      RewriteRule (.*) $1\.html [L]
      
      # removed "index" from directory index pages
      RewriteRule (.*)/index$ $1/ [R=301,L]
      
      # removed trailing "/" if not a directory
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_URI} /$
      RewriteRule (.*)/ $1 [R=301,L]
      
      # Here’s the first redirect:
      RedirectPermanent /index /
      

      My first three questions:

      Why do I need this rule?
      Why must this rule be at the top?
      Why isn't this handled by mod_rewrite?
      

      Now to the interesting part:

      I moved the Linkaufbau page to the SEO folder: https://chriseo.de/seo/linkaufbau and set up the redirect accordingly:

      RedirectPermanent /linkaufbau /seo/linkaufbau.html
      

      I deleted the old /linkaufbau page.

      I requested indexing for /seo/linkaufbau in the Google Search Console. Once the page was indexed, I set a canonical to the old URL:

      <link rel="canonical" href="https://chriseo.de/linkaufbau">
      
      • Then I resubmitted the sitemap and requested indexing for /seo/linkaufbau again, even though it was already indexed.
      • Due to the canonical tag, the page quickly disappeared.
      • I then requested indexing for /linkaufbau and /linkaufbau.html in GSC (the old, deleted page).

      After two days, both URLs were back in the serps::

      https://chriseo.de/linkaufbau
      https://chriseo.de/linkaufbau.html
      

      this is the new page /seo/linkaufbau
      b14ee095-5c03-40d5-b7fc-57d47cf66e3b-grafik.png

      This is the old page /linkaufbau
      242d5bfd-af7c-4bed-9887-c12a29837d77-grafik.png

      Both URLs are now in the search results and all rankings are significantly better than before for keywords like:

      organic linkbuilding
      linkaufbau kosten
      linkaufbau service
      natĂĽrlicher linkaufbau
      hochwertiger linkaufbau
      organische backlinks
      linkaufbau strategie
      linkaufbau agentur
      

      Interestingly, both URLs (with and without .html) redirect to the new URL https://chriseo.de/seo/linkaufbau, which in turn has a canonical pointing to https://chriseo.de/linkaufbau (without .html).

      In the SERPs, when https://chriseo.de/linkaufbau is shown, my new, updated snippet is displayed. When /linkaufbau.html is shown, it displays the old, deleted page that had already disappeared from the index.

      I have now removed the canonical tag.

      I don't fully understand the process of what happened and why. If anyone has any ideas, I would be very grateful.

      Best regards,
      Chris

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

        When you move a web page from one URL to another, you use redirects to ensure that users and search engines are directed to the new URL. 301 is a permanent redirect. It tells search engines that the page has permanently moved to a new location. 302 is a temporary redirect. It tells search engines that the move is only temporary, so they should keep the original page indexed. Meta Refresh is a type of redirect that happens on the page level. It's not as SEO-friendly as server-side redirects because it doesn't pass the same level of link equity. Canonical tags are HTML elements that help prevent duplicate content issues by specifying the preferred version of a web page.

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          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

        • dollarpesa

          DR rating and DA authority

          link building dr da

          DR rating and DA authority can be increased by website link building?

          Link Building | | dollarpesa
          0
        • sprydigital

          National services provider and localized SEO (no physical stores)

          seo local seo dynamic content

          Doing work for a telecom provider who operates in over 25 states. They are not trying to drive traffic to their brick-and-mortar stores. They want their marketing website to show products/services/pricing dynamically when a user enters their zip code. Previously, we could not show this until the shopper was already in the purchase flow that began with their serviceable address. They want to move these location-based details more forward in the shopping experience. They would likely have a "default" zip and set of services/pricing displaying until a user changes their location. My question is how does Google treat local SEO on a site where all location-targeted content is dynamic? Will the website suffer in localized search, when a shopper, say, in Colorado, wants to search for Internet providers? Is it better to have distinct landing pages for each territory with services/pricing?

          Local SEO | | sprydigital
          0
        • jasparcj

          Is page speed important to improve SEO ranking?

          seo page rank google seo tactic search visibility

          I saw on a SEO Agency's site (https://burstdgtl.com/search-engine-optimization/) that page speed apparently affects Google ranking. Is this true? And if it is, how do I improve it, do I need an agency?

          On-Page Optimization | | jasparcj
          0
        • curveballmedia

          How to stop /tag creating duplicate content - Wordpress

          wordpress seo duplicate content

          Hi, I keep getting alert for duplicate content. It seems Wordpress is creating it through a /tag https://www.curveball-media.co.uk/tag/cipr/ https://www.curveball-media.co.uk/tag/pr-agencies/ Something in the way we've got Wordpress set up?

          Technical SEO | | curveballmedia
          0
        • davidboh

          Why is my inner pages ranking higher than main page?

          technical seo

          Hi everyone, for some reason lately i have discovered that Google is ranking my inner pages higher than the main subfolder page. www.domain.com/subfolder --> Target page to be ranked
          www.domain.com/subfolder/aboutus ---> page that is currently ranking Also in the SERP most of the time, it is showing both links in this manner. www.domain.com/subfolder/aboutus
          -----------www.domain.com/subfolder Thanks in advance.

          Technical SEO | | davidboh
          1
        • LouisPortier

          Redirection chain and Javascript Redirect

          Hi, A redirection chain is usually defined as a page redirecting to another page which itself is another redirection. URL1 ---(301/302)---> URL2 ---(301/302)---> URL3 But what about Javascript redirect? They seem to be a different beast: URL1 ---(301/302)---> URL2 ---(200 then Javascript redirect)---> URL3 From what I know if the javascript redirect is instant Google counts it as a 301 permanent redirection, but I'm still not sure about if this counts as a redirection chain. Most of the tools (such as moz) only see the first redirection. So is that scenario a redirection chain or no?

          Technical SEO | | LouisPortier
          0
        • PeaSoupDigital

          Trailing Slashes and SEO

          Hi, We're currently using a third party blog platform (Blog Engine) on our site and we have a trailing slash issue. I can add as many trailing slashes as I want to the blog's homepage URL, but they don't redirect and our dev guys say this cannot be done with Blog Engine. We're in the process of building our own blog but, in the meantime, I just wanted to know if this will cause an issue? Individual blog posts with trailing slashes are redirected, it's just the homepage where it can't be done. I haven't noticed any traffic going to a blog URL with trailing slashes, and I don't believe any URLs with trailing slashes are being indexed, so should this be OK? Cheers, Lewis

          Technical SEO | | PeaSoupDigital
          0
        • andresgmontero

          Using the Canonical Tag

          Hi, I have an issue that can be solve with a canonical tag, but I am not sure yet, we are developing a page full of statistics, like this: www.url.com/stats/ But filled with hundreds of stats, so users can come and select only the stats they want to see and share with their friends, so it becomes like a new page with their slected stats: www.url.com/stats/?id=mystats The problems I see on this is: All pages will be have a part of the content from the main page 1) and many of them will be exactly the same, so: duplicate content. My idea was to add the canonical tag of "www.url.com/stats/" to all pages, similar as how Rand does it here: http://www.seomoz.org/blog/canonical-url-tag-the-most-important-advancement-in-seo-practices-since-sitemaps But I am not sure of this solution because the content is not exactly the same, page 2) will only have a part of the content that page 1) has, and in some cases just a very small part. Is the canonical tag useful in this case? Thank you!

          Technical SEO | | andresgmontero
          0
        Moz logo
        • Contact
        • Community
        • Free Trial
        • Terms & Privacy
        • Accessibility
        • Jobs
        • Help
        • What's New
        • News & Press
        • MozCon
        © 2021 - 2024 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.

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