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
-
link building
https://www.youtube.com/redirect?q=https%3A%2F%2Fantena24.ro%2F
Link Building | | Tv2.ro
https://m.youtube.com/redirect?q=https%3A%2F%2Fantena24.ro%2F
https://t.me/iv?url=https%3A%2F%2Fantena24.ro
https://cr.naver.com/redirect-notification?u=https%3A%2F%2Fantena24.ro
https://panchodeaonori.sakura.ne.jp/feed/aonori/feed2js.php?src=https%3A%2F%2Fantena24.ro
https://tvtropes.org/pmwiki/no_outbounds.php?o=https%3A%2F%2Fantena24.ro
https://optimize.viglink.com/page/pmv?url=https%3A%2F%2Fantena24.ro
https://hobby.idnes.cz/peruanske-palive-papricky-rocoto-dlz-/redir.aspx?url=https%3A%2F%2Fantena24.ro
https://redirects.tradedoubler.com/utm/td_redirect.php?td_keep_old_utm_value=1&url=https%3A%2F%2Fantena24.ro
https://www.kaskus.co.id/redirect?url=https%3A%2F%2Fantena24.ro
https://salesevents.madison.com/go.php?article_id=108164&dealer_id=60&ga_id&promo_id=25&source=promotion&url=https%3A%2F%2Fantena24.ro
https://bbs.pku.edu.cn/v2/jump-to.php?url=https%3A%2F%2Fantena24.ro%2F
https://feeds.hanselman.com/~/t/0/0/scotthanselman/~/https:/antena24.ro
https://guru.sanook.com/?URL=https%3A%2F%2Fantena24.ro%2F
https://keyscan.cn.edu/AuroraWeb/Account/SwitchView?returnUrl=https%3A%2F%2Fantena24.ro
https://bukkit.org/proxy.php?link=https%3A%2F%2Fantena24.ro
https://nou-rau.uem.br/nou-rau/zeus/auth.php?back=https%3A%2F%2Fantena24.ro%2F&go=x&code=x&unit=x
https://redirect.camfrog.com/redirect/?url=https%3A%2F%2Fantena24.ro
https://auth.she.com/logout/?callback=https%3A%2F%2Fantena24.ro&client_id=8
https://bugcrowd.com/external_redirect?site=https%3A%2F%2Fantena24.ro
https://wikimapia.org/external_link?url=https%3A%2F%2Fantena24.ro
https://www.earth-policy.org/?URL=https://antena24.ro
https://m.ok.ru/dk?st.cmd=outLinkWarning&st.rfn=https%3A%2F%2Fantena24.ro%2F
https://m.ok.ru/dk?st.cmd=outLinkWarning&st.rfn=https%3A%2F%2Fantena24.ro
https://wfc2.wiredforchange.com/dia/track.jsp?v=2&c=hdorrh%2BHcDlQ%2BzUEnZU5qlfKZ1Cl53X6&url=https%3A%2F%2Fantena24.ro%2F
https://www.fuzokubk.com/cgi-bin/LinkO.cgi?u=antena24.ro
https://ipv4.google.com/url?q=https%3A%2F%2Fantena24.ro
https://ditu.google.com/url?q=https%3A%2F%2Fantena24.ro%2F
https://www.google.com/url?sa=t&url=https%3A%2F%2Fantena24.ro
https://m.verywed.com/redirect.php?url=https://antena24.ro/
https://www.projekt-office.ch/?URL=https://antena24.ro
https://mobile.myprice74.ru/redirect.php?url=antena24.ro
https://www.libenar.it/?URL=https://antena24.ro/
https://feeds.osce.org/~/t/0/0/osceofficetajikistan/~/https:/antena24.ro
https://feeds.gty.org/~/t/0/0/gtyblog/~/https:/antena24.ro
https://feeds.marinsoftware.com/~/t/0/0/marininsights/~/https:/antena24.ro
https://www.bing.com/news/apiclick.aspx?ref=FexRss&aid=&tid=60610D15439B4103A0BF4E1051EDCF8B&url=https%3A%2F%2Fantena24.ro%2F&c=12807976268214810202&mkt=en-us
https://maps.google.bj/url?q=https%3A%2F%2Fantena24.ro%2F
https://www.google.bj/url?q=https%3A%2F%2Fantena24.ro%2F
https://www.htcdev.com/?URL=antena24.ro
https://maps.google.mu/url?q=https%3A%2F%2Fantena24.ro%2F
https://mitsui-shopping-park.com/lalaport/ebina/redirect.html?url=https%3A%2F%2Fantena24.ro%2F
https://images.google.co.uk/url?sa=t&url=https%3A%2F%2Fantena24.ro%2F
https://maps.google.co.uk/url?sa=t&url=https%3A%2F%2Fantena24.ro%2F
https://google.co.uk/url?sa=t&url=https%3A%2F%2Fantena24.ro%2F
https://results.dogpile.com/search/web?q=antena24.ro
https://www.ask.com/web?q=antena24.ro
https://search.aol.com/aol/search?s_chn=prt_bon&q=antena24.ro
https://duckduckgo.com/?q=antena24.ro&ia=web
https://www.bing.com/search?q=antena24.ro
https://search.yahoo.com/search?p=antena24.ro
https://search.yahoo.co.jp/search?p=antena24.ro1 -
Best SEO Structure For E-Commerce With Products Using Multiple Categories
Hi all, I am in the process of re-structuring my e-commerce website for better SEO and user experience. I have done some keyword research and would like some advice on how best to structure my site around those keywords. For example, my site (All Things Nature) sells a brand of wooden sculptures (Woodsculp) and I would like to rank for keywords related to that brand, the brand by animal, the brand by collection and the brand by release date.
Content Development | | nb2e4fg
Examples of keywords could be: Brand by Animal: Woodsculp Dogs, Woodsculp Cats, Woodsculp Elephants
Brand by Collection: Woodsculp Pets, Woodsculp Safari
Brand by Release Date: Woodsculp Christmas 2023, Woodsculp Summer 2022 I would create each of these keywords as a category so that they can be found by a search engine and by users. I would then structure as follows: All Things Nature -> Woodsculp -> Woodsculp by Animal -> Woodsculp Dogs
All Things Nature -> Woodsculp -> Woodsculp by Animal -> Woodsculp Elephants
All Things Nature -> Woodsculp -> Woodsculp by Collection -> Woodsculp Pets
All Things Nature -> Woodsculp -> Woodsculp by Collection -> Woodsculp Safari
All Things Nature -> Woodsculp -> Woodsculp by Release Date -> Woodsculp Christmas 2023
All Things Nature -> Woodsculp -> Woodsculp by Release Date -> Woodsculp Summer 2022 The only problem with this structure is it would take more than 3 clicks (4) for the user to reach a product. How critical is this for good SEO and user experience? Would I be better off getting rid of the ‘Woodsculp by Animal’, ‘Woodsculp by Collection’ and ‘Woodsculp by Release Date’ categories? Structure would look as follows: All Things Nature -> Woodsculp -> Woodsculp Dogs
All Things Nature -> Woodsculp -> Woodsculp Elephants
All Things Nature -> Woodsculp -> Woodsculp Safari
All Things Nature -> Woodsculp -> Woodsculp Christmas 2023 The only thing with this is there would be a lot of categories under the brand name which might make it more difficult for search engines and users to logically follow. Would I be better off getting rid of the brand category and replace them with the keyword categories? Structure would look as follows: All Things Nature -> Woodsculp by Animal -> Woodsculp Dogs
All Things Nature -> Woodsculp by Animal -> Woodsculp Elephants
All Things Nature -> Woodsculp by Collection -> Woodsculp Safari
All Things Nature -> Woodsculp by Release Date -> Woodsculp Christmas 2023 This would organise things more logically but I would then lose the brand category (and the potential of the brand keyword ranking?) Would I be better off choosing one main keyword to use as a category and then use tags for the other categories? Categories: All Things Nature -> Woodsculp -> Woodsculp Dogs
All Things Nature -> Woodsculp -> Woodsculp Elephants Tags: Woodsculp Safari
Woodsculp Christmas 2023 The next issue I have is that I have products which could fall under several different categories. A product called Elijah Elephant, for example could fall under Woodsculp Elephants, Woodsculp Safari and Woodsculp Summer 2022. In previous e-commerce sites I have never assigned multiple categories to one product (I instead have used tags). Is it good practice to organise products under multiple categories for an e-commerce site? Thanks in advance for any help and advice.0 -
How to rank a website in different countries
I have a website which I want to rank in UK, NZ and AU and I want to keep my domain as .com in all the countries. I have specified the lang=en now what needs to be done to rank one website in 3 different English countries without changing the domain extension i.e. .com.au or .com.nz
SEO Tactics | | Ravi_Rana0 -
Sudden Drop in Mobile Core Web Vitals
Web Vitals Screengrab.PNG For some reason, after all URLs being previously classified as Good, our Mobile Web Vitals report suddenly shifted to the above, and it doesn't correspond with any site changes on our end. Has anyone else experience something similar or have any idea what might have caused such a shift? Curiously I'm not seeing a drop in session duration, conversion rate etc. for mobile traffic despite the seemingly sudden change.
Technical SEO | | rwat0 -
Canonical redirects
Hello, I have a quick question: I use wordpress for my website. I have a plugin for translating the website in other languages. Thus, I have 2 versions of urls, one with /en, one without (original languale). This has been seen as duplicate content. I have been advised that the best to do is to use canonical redirect. Should I use it on the general header.php (the only header I can find in the CMS), or should I redirect each page singularly? I believe the second is the best way, but I can't find headers and txt documents for each page in my FTP. As well I have seen this post, in which is explained that canonical redirects can be done directly in the general header.php http://www.bin-co.com/blog/2009/02/avoid-duplicate-content-use-canonical-url-in-wordpress-fix-plugin/ Is it true? You have any suggestion?
Technical SEO | | socialengaged
Thanks! 🙂 Eugenio0 -
Magento Canonical Tags
Magento pages have been giving me a lot of trouble with the canonical tags. In some cases duplicate pages are showing up, so I need to add the canonical tag. In other cases I'm getting an error that there are multiple canonical tags per page. How can I get my pages canonized without duplicate tags? It seems like it's either too much or not enough, no matter what I do. Note: this only applies to category and product pages.
Technical SEO | | GravitateOnline0 -
Robots.txt and canonical tag
In the SEOmoz post - http://www.seomoz.org/blog/robot-access-indexation-restriction-techniques-avoiding-conflicts, it's being said - If you have a robots.txt disallow in place for a page, the canonical tag will never be seen. Does it so happen that if a page is disallowed by robots.txt, spiders DO NOT read the html code ?
Technical SEO | | seoug_20050