I have a plugin that allow my users in multisite to generate simple urls like http://example.com/user/?my_url=2DD0B8183 but i want to include the https instead http ...
echo '<div>';
echo '<div><input type="text" class="url" value="' .get_option('home'). '/?my_url=' . $download["code"] . '" onclick="this.select();" /></div>';
exit();
}
I tried
echo '<div><input type="text" class="url" value="https://' .get_blogaddress_by_id( $user_info->primary_blog ) . '?my_url=' . $download["code"] . '" onclick="this.select();" /></div>';
but i get https://http://example.com/user/?my_url=C4785825B
I have already forced ssl/https for entire my network via .htaccess
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]