Custom Canonical CK PRO Root URL

More
1 year 3 months ago - 1 year 3 months ago #74742 by fdonna
Hi, 
is it possible to have Root URL parameter, if left empty, automatically filled with $base_url?

Sonething like this:
Code:
<?php $protocol = isset($_SERVER['HTTPS']) &&  $_SERVER['HTTPS'] === 'on' ? 'https://' : 'http://'; $base_url = $protocol . $_SERVER['HTTP_HOST'] . '/'; ?>


Thank you very much
Kind regards
 
Last edit: 1 year 3 months ago by fdonna.

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago #74743 by ced1870
Hi
in the plugin options you can set the root of the website, if left empty it will use relative urls
please give me more details about the problem so that I can check
CEd

Joomlack Webmaster and Developer
The following user(s) said Thank You: fdonna

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago #74744 by fdonna
Hi! Thank you for your quick reply!
Yes, I know that an empty field makes relative urls appear as canonical paths (example /blog) but I think that Google doesn't like this (am I wrong?) and it could be much more useful having Root URL, if left blank, filled with $base_url to have www.mysite.com/blog as canonical path.

Thank you very much.
Kind regards

Hi
in the plugin options you can set the root of the website, if left empty it will use relative urls
please give me more details about the problem so that I can check
CEd

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago #74746 by ced1870
thank you, I understand your request :)
I will check in the next days if I can do the update

Joomlack Webmaster and Developer
The following user(s) said Thank You: fdonna

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago #74748 by fdonna
Thank you! 🙏

thank you, I understand your request :)
I will check in the next days if I can do the update
 

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago #74749 by ced1870
I have updated to the 1.2.2 version, it automatically adds the domain as root if nothing is set in the option

Joomlack Webmaster and Developer
The following user(s) said Thank You: fdonna

Please Log in or Create an account to join the conversation.

Time to create page: 0.209 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 926 guests and no members online