[Plugin: ABT Relative Urls] Problem with using home_url() to get root
-
Hi, i’m using abt-relative-urls v0.3.2, and I had to switch the code:
$this->absolute_prefix = home_url();
back to
$this->absolute_prefix = 'http' . (isset( $_SERVER['HTTPS'] ) && $_SERVER['HTTPS'] == "on" ? 's' : '') . '://' . $_SERVER['HTTP_HOST'];
because my wordpress install is in a folder on my server, not directly in the root, so my home url is something like this:
https://www.whatever.com/wordpressSo it doesn’t change the urls to go from the the real server root. (It chops off the “/wordpress” part of the url.)
Other than that, I really like the plugin! thanks!
Bill.https://www.ads-software.com/extend/plugins/abt-relative-urls/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: ABT Relative Urls] Problem with using home_url() to get root’ is closed to new replies.