Welcome to WebmasterWorld Guest from 107.20.59.213

Message Too Old, No Replies

How does google look at a canonical tag to the same page

     

Shepherd

3:05 pm on Dec 21, 2013 (gmt 0)

Top Contributors Of The Month



Putting some inter-page links on a page which will create urls which may seem like different pages and want to use a canonical tag.

main page:
http://www.example.com/widgets/

inter-linked urls:
http://www.example.com/widgets/#top
http://www.example.com/widgets/#samples
...etc.

putting a canonical tag on
http://www.example.com/widgets/ as follows:
<link rel="canonical" href="http://www.example.com/widgets/"/>

This should solve the problem of google thinking that /widgets/#top and /widgets/#samples are separate pages but how does it look when google crawls the main page? Did I just create some crazy, never ending loop?

JD_Toims

4:12 pm on Dec 21, 2013 (gmt 0)

WebmasterWorld Senior Member Top Contributors Of The Month



You can point a rel=canonical to the page it's on without any issue.

This should solve the problem of google thinking that /widgets/#top and /widgets/#samples are separate pages...

A note about this part: There isn't a problem with Google thinking a fragment is indicating a different page -- IOW: Unlike stuff after a ?, stuff after the # [as long as you're not using #! which indicates a page-state that changes via AJAX] does not "create a different/duplicate page".

Shepherd

5:05 pm on Dec 21, 2013 (gmt 0)

Top Contributors Of The Month



stuff after the # does not "create a different/duplicate page".


That's good to know!
 

Featured Threads

Hot Threads This Week

Hot Threads This Month