Advertisement
BenjaminS

TYPO3: Cannonical URL voor SEO multiple domains

Nov 29th, 2011
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
  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]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement