Jump to content
jjjefersonnn

link rel="canonical"

Recommended Posts

 
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?

Share this post


Link to post
Share on other sites
Robert    0

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×