Canonical URL for Home Page
Permalink Browser Info Environment
SEO Manager is creating a canonical tag with ".../index.php?cID=1".
Is that expected?
Is there a way to change it?
Thanks,
Marcus.
Is that expected?
Is there a way to change it?
Thanks,
Marcus.
Type: | Discussion |
---|---|
Status: | New |
12345j,
I changed line 13 of canonical.php to
Do you think that is ok? I don't know if the root/homepage of all concrete5 installations is id 1, but that works for us for the mean time.
Thanks for the follow-up,
Marcus
I changed line 13 of canonical.php to
if ($id == 1) { $v->addHeaderItem('<link rel="canonical" href="'.BASE_URL.'/" />'); } else { $v->addHeaderItem('<link rel="canonical" href="'.$url.'" />'); }
Do you think that is ok? I don't know if the root/homepage of all concrete5 installations is id 1, but that works for us for the mean time.
Thanks for the follow-up,
Marcus
try using this which has a couple of advantages- HOME_CID will always be the id of the homepage, and view::url('/') will account for any subfolders that c5 might be in.
if ($id == HOME_CID) { $v->addHeaderItem('<link rel="canonical" href="'.BASE_URL.view::url('/').'" />'); } else { $v->addHeaderItem('<link rel="canonical" href="'.$url.'" />'); }
btw, I have added the above code to seo manager for version 1.2.1 and above and hope to get it included in c5 by default.
12345j,
Thanks for making that addition.
Marcus
Thanks for making that addition.
Marcus
12345j,
You mentioned that you would included this addition into future releases of SEO Manager.
Could you confirm that is in version 2.2?
I am not seeing it there.
Thanks,
Marcus.
You mentioned that you would included this addition into future releases of SEO Manager.
Could you confirm that is in version 2.2?
I am not seeing it there.
Thanks,
Marcus.
not sure- i'll check.
okay, my bad- ithad slipped out somehow. 2.2.1 fixes.
Canonical URL for Home Page I know this may not be related to my problem. The canonical url. I want my Blogger.com blog page to be directed from c5 to this page by inserting link on my blog page title on concrete 5. qso My Blog and click the link and forward to blogger ,com by inserting link into carnonical external page ????
hi,
not sure if I really understood that but it seems like you want to redirect a blogger page to a concrete5 blog. If that is correct, then this is not a question to post in seo manager forums. you should instead look in the blogger help sectionhttp://www.google.com/support/blogger/?hl=en... or concrete5 forumshttp://www.concrete5.org/community/forums...
not sure if I really understood that but it seems like you want to redirect a blogger page to a concrete5 blog. If that is correct, then this is not a question to post in seo manager forums. you should instead look in the blogger help sectionhttp://www.google.com/support/blogger/?hl=en... or concrete5 forumshttp://www.concrete5.org/community/forums...
there is a bug in the current version of c5 that is creating that. Fixing this bug is being discussed by several members of the community, however at this time there is no fix.