Rel="canonical" at the same page
-
Hello Everyone!!
We have a Joomla Site and in the template we have a php function that create the **link rel="canonical" **and in the href inserts the same page url.
For example, if the we do a search and the url have some cookies. That Url is gonna be the **rel="canonical" **for that page.
Is it working correctly?
We need an advice to to set it up correctly!
Thanks!
-
The rel="canonical" tag needs to have the URL that you wish to be the primary designated URL. This tells the search engines only to index this version of the URL and no other versions, and it also tells the search engines that links to other versions of the URL need to be counted as pointing to the canonical version.
So if your page is www.mysite.com/boats.php and you use www.mysite.com/boats.php?utm_medium=adwords, etc. then the canonical tag should be set to www.mysite.com/boats.php so the search engines don't bother messing with the URLs with the parameters in them.
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
-
Should you do on-page optimization for a page with rel=canonical tag?
If you ad a rel=canonical tag to a page, should you still optimize that page? I'm talking meta description, page title, etc.
On-Page Optimization | | marynau0 -
Site IA considering a "Resources" section
I'm working on a resources section for our website and I'm wondering the best way to handle my sites information architecture. The resources section houses things like webinars (both upcoming and recorded), case studies, ebooks, etc. Should things like webinars and case studies be considered supporting content to our main topics? For example we have a product that manages Rebates. So we have a page on our site dedicated to "Rebates". Would a webinar or case study about our Rebates software be grouped with "Rebates" or would it be grouped by content/resource type? So for example a breadcrumb could look like this: Home > Rebates > Rebates Webinar or Home > Webinars > Rebates Webinar Thanks in advance!
On-Page Optimization | | Brando160 -
Is it better to create more pages of content or expand on current pages of content?
I am assuming that one way of improving the rankings of current pages will be to create more content on the keywords used... should this be an expansion of the content on current pages I am optimising for a keyword or is it better to keep creating new pages and if we are creating new pages is it best to use an extension of the keyword on the new page – for example if we are optimising one page for ‘does voltage optimisation work’ would it then be worth creating a page optimised for ‘does voltage optimisation work in hotels’ for example and so on? I am guessing maybe both might help, this is just a question I have had from one of my clients.
On-Page Optimization | | TWSI1 -
In counting words for a "long article," do comments count in the word count?
As Moz and others have proven, long articles help ranking, linking and sharing. My question is, do the comments at the end of an article count in the word count as Google counts it.
On-Page Optimization | | bizzer0 -
Page 2 is ranking
Hey All, I'm working on a wordpress site project and in analytics the sites ranking url is page 2. is this a problem?
On-Page Optimization | | CobraJones950 -
Will "internal 301s" have any effect on page rank or the way in which an SE see's our site interlinking?
We've been forced (for scalability) to completely restructure our website in terms of setting out a hierarchy. For example - the old structure : country / city / city area Where we had about 3500 nicely interlinked pages for relevant things like taxis, hotels, apartments etc in that city : We needed to change the structure to be : country / region / area / city / cityarea So as patr of the change we put in place lots of 301s for the permanent movement of pages to the new structure and then we tried to actually change the physical on-page links too. Unfortunately we have left a good 600 or 700 links that point to the old pages, but are picked up by the 301 redirect on page, so we're slowly going through them to ensure the links go to the new location directly (not via the 301). So my question is (sorry for long waffle) : Whilst it must surely be "best practice" for all on-page links to go directly to the 'right' page, are we harming our own interlinking and even 'page rank' by being tardy in working through them manually? Thanks for any help anyone can give.
On-Page Optimization | | TinkyWinky0 -
Home page keyword effecting internal page ranking
Hello, My client has a second keyword for the home page that is competitive. The home page is not being ranked for this keyword. Instead, an internal category page is ranking. This internal category page is more relevant than the home page - it shows the categories for the actual products that this term refers to. But everyone around us in Google's page results has far more backlinks than the internal page, and we're all heavily optimized for this term. My question is, is it safe to pull the second term off of the home page or is this internal page strong because it is somehow being strengthened by the home page optimization?
On-Page Optimization | | BobGW0 -
Can you 301 redirect to a page that has other pages 301 to it?
Two years ago updated url page to include better keywords and used a 301 redirect from the old page to the new. so www.example.com/keyword-1st-generation.html now points to ... www.example.com/keyword-2nd-generation.html That moved the pages up in ranking, but now have better kw for the url, so is it okay to redirect the /keyword-2nd-geration-html to www.example.com/keyword-3rd-generation.html And what is a good length of time before removing the 1st-generation url? It's been 3 years and there is no chance of using it again. Plus, no sign of it in analytics.
On-Page Optimization | | AllIsWell0