Caninical issue
-
Hello all,
I have a problem related to "canonical issues" that I would like to get your view on:
The issue:
Our site: http://www.texaspoker.dk/ has a "canonical issue" with the home page.
We added a redirect to www.texaspoker.dk, but this hasn't solved our problem.
In the latest "too many on page links" analysis made with SEOmoz' exelent SEO tool, we get the following error:
http://www.texaspoker.dk(101 on page links)
http://www.texaspoker.dk/?page=2 (on page links)
So, made simple, the analysis tells us that both http://www.texaspoker.dk and http://www.texaspoker.dk/?page=2 has too many on page links. How do I eliminate / remove the unwanted http://www.texaspoker.dk/?page=2 and how did it, in the first place, get there?
Thanks a lot!
-
Hi again,
I managed to fix it for the frontpage using the folowing PHP code:
if(isset($_SERVER['REQUEST_URI'])){
$get_uri = $_SERVER['REQUEST_URI'];
if($get_uri!="/"){ $url = "/"; header('Location: ' . $url, true, 301);
}
}
?>
-
Hi @SEOConsult,
Will the .htaccess fix you mentioned affect other paginated pages on our site?
-
Hi again,
Thanks a lot for your answer and the solution to fix the problem on the front page.
We use Nginx as web server software but we can setup the .htaccess stuff in the .conf file. However we have other paginated pages on our site. Will the above mentioned solution affect all paginated pages on our site?
-
No problem Do you have a .htaccess file within the root directory? If not, create a new .htaccess file and add this rule:
RewriteRule ^page?=(.*)$ / [L,R=301]
I'd suggest that you add a canonical tag to all pages too.
-
Hi again,
Thanks for your advice - the thing is that this is what I have already tried. The problem here is that the site apparently allows one to write: http://www.texaspoker.dk/?page=3
http://www.texaspoker.dk/?page=4
etc.Do you - or anybody else - have an idea how I can stop this?
Thanks a lot, your advice is very much appreciated.
-
You're correct, that is a canonical issue. I'd suggest that you 301 redirect ?page=2 back to the root.
Good luck!
-
Hi SEOConsult,
Thanks a lot for the answer. I will try to get some of the links removed, as they are not all "necessary."
This being said, I still believe that it's a problem for my site that there are access to two different homepages (?):
and:
http://www.texaspoker.dk/?page=2
Thanks a lot, all suggestions are very much appreciated.
-
Hi there,
Firstly, I think it's important to note that the tool isn't telling you that the site has canonical issues. Canonical issues are basically when you can view the same page from more than one version of the URL.
The "too many links" issue is, as it suggests, the page has too many links.
At the moment the homepage (http://www.texaspoker.dk/) has 102 links, which is acceptable however you should look at removing any unnecassary links on-page. Generally, you should look at having few than 100 links on a page. Having 102 is fine but obviously if you can remove unnecessary links, do it.
The fewer links on the page the better
Hope that helps/clears things up!
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
-
Discovered - currently not indexed issues
Hi there We're having an issue with our site recently where our new blog posts are not indexing properly from Google.
Technical SEO | | Syte
Inspecting it with Google Search Console gives up the errors "Discovered - currently not indexed" and "Excluded". I.e. it seems like Google sees our sitemap but chooses not to crawl and index for some reason. Does anybody have any ideas why this might be, and what we could do to fix it?
Thanks0 -
Internal link is creating duplicate content issues and generating 404s from website crawl.
Not sure what the best way to describe it but the site is built with Elementor page builder. We are finding out that a feature that is included with a pop modal window renders an HTML code as so: Click So when crawled I think the crawling is linking itself for some reason so the crawl returns something like this: xyz.com/builder/listing/ - what we want what we don't want xyz.com/builder/listing/ xyz.com/builder/listing/%23elementor-action%3Aaction%3Dpopup%3Aopen%26settings%3DeyJpZCI6Ijc2MCIsInRvZ2dsZSI6ZmFsc2V9/ xyz.com/builder/listing/%23elementor-action%3Aaction%3Dpopup%3Aopen%26settings%3DeyJpZCI6Ijc2MCIsInRvZ2dsZSI6ZmFsc2V9//%23elementor-action%3Aaction%3Dpopup%3Aopen%26settings%3DeyJpZCI6Ijc2MCIsInRvZ2dsZSI6ZmFsc2V9/ so you'll notice how that string in the HREF is appended each time and it loops a couple times. Could I 301 this issue, what's the best way to go about handling something like this? It's causing duplicate meta descriptions/content errors for some listing pages we have. I did add a rel='nofollow' to the anchor tag with JavaScript but not sure if that'll help.
Technical SEO | | JoseG-LP0 -
Robots.txt in subfolders and hreflang issues
A client recently rolled out their UK business to the US. They decided to deploy with 2 WordPress installations: UK site - https://www.clientname.com/uk/ - robots.txt location: UK site - https://www.clientname.com/uk/robots.txt
Technical SEO | | lauralou82
US site - https://www.clientname.com/us/ - robots.txt location: UK site - https://www.clientname.com/us/robots.txt We've had various issues with /us/ pages being indexed in Google UK, and /uk/ pages being indexed in Google US. They have the following hreflang tags across all pages: We changed the x-default page to .com 2 weeks ago (we've tried both /uk/ and /us/ previously). Search Console says there are no hreflang tags at all. Additionally, we have a robots.txt file on each site which has a link to the corresponding sitemap files, but when viewing the robots.txt tester on Search Console, each property shows the robots.txt file for https://www.clientname.com only, even though when you actually navigate to this URL (https://www.clientname.com/robots.txt) you’ll get redirected to either https://www.clientname.com/uk/robots.txt or https://www.clientname.com/us/robots.txt depending on your location. Any suggestions how we can remove UK listings from Google US and vice versa?0 -
Issue with Title of Homepage - Wordpress Platform
I can't seem to get Google to read the title of my homepage the way I would like it to be read and I have double checked in all areas of my Wordpress Platform where the title may be defaulting and all it set up correctly. I have also ensured that the "force re-write of titles and meta descriptions" have been checked through a plugin I am using to monitor SEO (Yoast)... here is an example of how Google is reading my homepage title: XYZ Company: Primary Keyword in Ontario Canada - XYZ Company I would like it to read: Primary Keyword in Ontario Canada - XYZ Company But for some reason it keeps pulling in my website title. I have always re-submitted my URL to Google but no luck with the title change. If anyone has any insight as to why this is defaulting as such I would greatly appreciate it. Thanks!
Technical SEO | | MainstreamMktg0 -
Gallery Causing Duplicate Content Issues
Hi! I have a gallery on my website. When you click to view the next image it goes to a new page but the content is exactly the same as the first page. This is flagging up a duplicate content issue. What is the best way to fix this? Add a canonical tag to page 2,3,4 or add a noindex tag? I have found a lot of conflicting answers. Thanks in advance
Technical SEO | | emma19860 -
Best way to handle with a Multiple Langue Issue
Howdy everyone! I am having trouble with deciding on how to solve a Multiple Language Issue. I went to several consultants here in Mexico, but i am not totally convinced on their solution. So i am hoping to hear excellent advice (as always) here on the SEOMOZ Forum. I have a website, (www.aceromart.com) an ecommerce site in which to sell materials for the construction industry. My main market is in Mexico, therefore the website is in Spanish. However, the export sales are increasing and some of the suppliers are from USA. I need to include the English version on my website, however i dont know how to do this. The option that they propose is to create an entirely different website with another domain. Entirely in English that links to my existing website. I did not like this at all. Mainly because i would not like to change the brand name or anything. I would like to include the English version within my website. Is it okay, if treat it as a folder withing my website. I.E www.aceromart.com/english/content? What is the best way to do this according to your experience. Best Regards, thanks for your help.
Technical SEO | | JesusD0 -
Htaccess issue
I have some urls in my site due to a rating counter. These are like: domain.com/?score=4&rew=25
Technical SEO | | sesertin
domain.com/?score=1&rew=28
domain.com/?score=5&rew=95 These are all duplicate content to my homepage and I want to 301 redirect them there. I tried so far: RedirectMatch 301 /[a-z]score[a-z] http://domain.com
RedirectMatch 301 /.score. http://domain.com
RedirectMatch 301 /^score$.* http://domain.com
RedirectMatch 301 /.^score$.* http://domain.com
RedirectMatch 301 /[a-z]score[a-z] http://domain.com
RedirectMatch 301 score http://domain.com
RedirectMatch 301 /[.]score[.] http://domain.com
RedirectMatch 301 /[.]score[.] http://domain.com
RedirectMatch 301 /[a-z,0-9]score[a-z,0-9] http://domain.com
RedirectMatch 301 /[a-z,0-9,=,&]score[a-z,0-9,=,&] http://domain.com
RedirectMatch 301 /[a-z,0-9,=&?/.]score[a-z,0-9,=&] http://domain.com None of them works. Anybody? Solution? Would be very much appriciated0 -
Drupal 1.5 Issue: Taxonomy
Hi there I have a domain which is built in Drupal 1.5 . We managed to redirect all nodes to the actial SEF URL. The one issue we have no is redirecting the taxonomy urls to the SEF url. The obviuos answr is to do a manual 301 redirect n the htaccess file but this will a long process as there are over 500 urls affected. Is there a better way to do this automatically within Drupal? Your thoughts and ideas are welcome.
Technical SEO | | stefanok0