Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
protocol independent url
#1
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
Reply
#2
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)
Reply
#3
(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.
Reply
#4
3.4 does
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#5
(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.
Reply
#6
Yeah i do not know why that filter does not support various url schemes
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)