Posts: 149
Threads: 12
Joined: Dec 2009
2015-08-24, 19:44:44
(This post was last modified: 2015-08-24, 19:45:38 by marrco.)
i'm switching a few sites from http to https. And Website Settings/Website URL allow only http and https url, not protocol independent //mysite.org type url.
That setting caused to me a few troubles because menus, links containing src="<?php get_theme_url(); ?>/js end probably many other force a protocol.
I think that's an error, but maybe there's a reason behind that choice i don't know
Posts: 3,491
Threads: 106
Joined: Mar 2010
Edit /admin/settings.php and remove type="url"
from line 217.
Then you will be able to enter any site URL you wish.
(But of course you'll have to do the change again when you upgrade GS)
Posts: 149
Threads: 12
Joined: Dec 2009
(2015-08-24, 21:31:49)Carlos Wrote: Edit /admin/settings.php and remove type="url"
from line 217.
Then you will be able to enter any site URL you wish.
(But of course you'll have to do the change again when you upgrade GS)
thanks for the suggestion. If there's some consensus about having protocol independent urls that could be a feature for next gs version. ATM i'm converting to https a few sites for my clients. Google appreciate that. Also plugin developers sometimes have to change their work. Shortcodes don't work out of the box because it has http hardcoded in many places. So maybe staying protocol neutral could be also in the guidelines for protocol developers.
Posts: 6,266
Threads: 181
Joined: Sep 2011
Posts: 1
Threads: 0
Joined: Aug 2016
(2015-08-24, 21:31:49)Carlos Wrote: Edit /admin/settings.php and remove type="url"
from line 217.
Then you will be able to enter any site URL you wish.
(But of course you'll have to do the change again when you upgrade GS)
This suggestion has made my life a lot easier. I have no issues now converting https sites.
Posts: 6,266
Threads: 181
Joined: Sep 2011
Yeah i do not know why that filter does not support various url schemes