Understanding Redirects and Canonical Tags in SEO: A Complex Case
-
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
This is the old page /linkaufbau
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 -
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.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
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.
Related Questions
-
my website seo
my web site is : sahraii and my category products descriptions are very long but not getting any results from google
Link Building | | arashsahraii
any suggest?0 -
site speed
i use mid-quality pic and... but my site speed is low
On-Page Optimization | | zlbvasgabc
any suggestion?
my site is:
https://bandolini.ir/0 -
Unsolved Spam Score Blank - Looking For Feasible Solution
Hi,
Link Explorer | | Jane090987
There is a question in my website. When I'm searching the number of spam score of my site, it shows "--".
In the official article it shows that the reason of "--" happens is that our site has not been evaluated by Moz. But there aren't any ways of solutions, seems that we can only wait - not knowing how long - for being evaluated.
Is there any way that I can get my site evaluated by Moz, and the spam score of my website can be displayed as an exact number?
Thanks for answering in advance!0 -
blog url structure change affect on pagerank
We are looking to change our blog structure which will help us with the organization of the topics but the url structure will change if we do this. Right now all of the blogs are under a general news blog, which we will be breaking out articles into several blog category topics Current:
Technical SEO | | theblueprints
example of current structure
current site: https://domain/blogs/news/blog article name Proposed Change:
current site: https://domain/blogs/keyword-name-of-blog-category/blog article name We have ranked #1 for several keywords that we would like to preserve the ranking if we make this switch with 301 redirects. Looking for suggestion on the percentage of chance our ranking will be negatively affected and by how much? Also what everyones recommendation is if we should make this switch or not touch the urls. Your help is appreciated, thanks in advance.0 -
# Tag - opacity and SEO impact
Hello,
Technical SEO | | Tiffany_Barn
I have a query animation 'fade-in-up' on my website: tiffanybarnard.com which moves the H1 tag slightly and fades it in from zero opacity to 1. Will this affect the SEO value of the H1 tag?
Thank you!0 -
Yoast SEO Plugin and Theme Conflict - Meta Tags
I have installed yoast seo plugin and a theme that I purchased.
Technical SEO | | vivadata
I have added site title and meta description for the index page through yoast seo plugin see here http://screencast.com/t/AdjMynym8Tm however this does not work as can be seen on the test site
http://importingtips.com/test/ does anyone have any advice? Thanks0 -
Can I redirect a URL that has a # in it? How?
Hi there - My web developer is saying that I can't do a URL redirect with a "#" in it. Currently, the URL is actually an anchored link within a page (which the URL indicates with a #). I want to change the content to a new URL, but our website links internally to the old URL, so we would need to do a URL redirect (assume 301). Can you tell me if this is possible and how? Thanks!
Technical SEO | | sfecommerce0 -
301 redirect
We have just had an outside SEO agency report on our site: One of things brought up were arounf broken links, and how they class them as broken links. Could any body tell me whether this statement holds true please, as I am not aware of this "Our latest intelligence shows that google are downgrading ranking from sites that feature 301 redirects within the internal link structure". Any help would be greatly appreciated Regards
Technical SEO | | Yozzer0