SHOW:
|
|
- or go back to the newest paste.
| 1 | #If there is duplicate content on another domain, you can easily add an cononical link to the head of the page. | |
| 2 | ||
| 3 | # canonical link | |
| 4 | page.headerData.393 = COA | |
| 5 | page.headerData.393 {
| |
| 6 | wrap = <link rel="canonical" href="|" /> | |
| 7 | ||
| 8 | # baseurl | |
| 9 | 10 = TEXT | |
| 10 | 10.value = http://www.domain.com | |
| 11 | ||
| 12 | # current url | |
| 13 | 20 = TEXT | |
| 14 | 20.data = getIndpEnv:REQUEST_URI | |
| 15 | - | } |
| 15 | + | } |
| 16 | ||
| 17 | ||
| 18 | # remove the first 3 characters 'nc/' when no_cache is active | |
| 19 | [globalVar = GP:no_cache > 0] | |
| 20 | page.headerData.393.20.stdWrap.substring = 3 | |
| 21 | [global] |