Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: SEO optimisations of blog article list
Alternative?
<link rel="canonical" href="http://www.yoursite.tld<txp:page_url />" />
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#17 2018-06-20 20:36:05
- singaz
- Member
- Registered: 2017-03-12
- Posts: 150
Re: SEO optimisations of blog article list
colak wrote #312655:
Alternative?
<link rel="canonical" href="http://www.yoursite.tld<txp:page_url />" />...
Good decision.
I will do so.
Thank you!
Sorry my horror English. I’m learning textpattern, I’m learning English
Offline
Re: SEO optimisations of blog article list
Another approach that I sometimes use is to set the public_domain without the trailing slash in a variable (e.g. using adi_variables or oui_prefs). That can be useful when working on a test or staging domain that’s not the final public domain, for example:
- Set the canonical url to always use the desired public_domain rather than your test or staging domain.
<link rel="canonical" href="http://<txp:variable name="public_domain" /><txp:page_url />" >
- Use it in conjunction with ied_if_domain to send meta noindex tags or to prevent google analytics from loading when not on the public domain.
TXP Builders – finely-crafted code, design and txp
Offline
#19 2018-06-22 19:48:26
- singaz
- Member
- Registered: 2017-03-12
- Posts: 150
Re: SEO optimisations of blog article list
Hi jakob
An interesting solution.
Thank you
Sorry my horror English. I’m learning textpattern, I’m learning English
Offline