Jump to content
jjjefersonnn

link rel="canonical"

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?

Share this post


Link to post
Share on other sites
Robert

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
jjjefersonnn

it works
:) thank you

Edited by jjjefersonnn

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

×

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