jjjefersonnn Posted March 8, 2017 Share Posted March 8, 2017 Is there someway to add canonical urls into template? or should i do this manually page to page?.. some string recognizes the page or something like that? Link to comment Share on other sites More sharing options...
Robert Posted March 8, 2017 Share Posted March 8, 2017 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 More sharing options...
jjjefersonnn Posted March 8, 2017 Author Share Posted March 8, 2017 (edited) it works thank you Edited March 8, 2017 by jjjefersonnn Link to comment Share on other sites More sharing options...
Robert Posted March 8, 2017 Share Posted March 8, 2017 No problem. Glad its working for you. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now