Kunena Menu
Custom Canonical CK PRO Root URL
1 year 3 months ago - 1 year 3 months ago #74742
by fdonna
Custom Canonical CK PRO Root URL was created by fdonna
Hi,
is it possible to have Root URL parameter, if left empty, automatically filled with $base_url?
Sonething like this:
Thank you very much
Kind regards
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.
1 year 3 months ago #74743
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Custom Canonical CK PRO Root URL
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
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.
1 year 3 months ago #74744
by fdonna
Replied by fdonna on topic Custom Canonical CK PRO Root URL
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
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.
1 year 3 months ago #74746
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Custom Canonical CK PRO Root URL
thank you, I understand your request 
I will check in the next days if I can do the update
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.
1 year 3 months ago #74748
by fdonna
Replied by fdonna on topic Custom Canonical CK PRO Root URL
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.
1 year 3 months ago #74749
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Custom Canonical CK PRO Root URL
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




