Jump to content
LemmeCheck.Info

link rel="canonical"


jjjefersonnn
 Share

Recommended Posts

jjjefersonnn
 
Is there someway to add canonical urls into template? or should i do this manually page to page?.. 010.gif 
some string recognizes the page or something like that?
Link to comment
Share on other sites

JJ... the way I do it for the lemmecheck galleries are:

<link rel='canonical' href='<?php echo 'https://www.mydomain.com' . trim(strtok($_SERVER['REQUEST_URI'], '?'),'index.html' ); ?>' />

Note, replace "mydomain.com" with the root domain where your arylia galleries are displayed. I also like my galleries clean with no index.html, index.php at the end, so I trim them here.

Put that in your template, and then re-generate a gallery, view source and then tweak as needed.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use, Privacy Policy, and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. policies