How to switch to absolute-path references (siteurl)?
-
I am trying to modify a template to conform to my personal system of naming conventions and link/file strutures.. specifically I am wanting to change the full uri currently being used by wordpress:
[scheme] [authority] [path] [query] [fragment]
to
[path]So instead of
<a href="https://www.www.ads-software.com">Home</a>
<link href="https://www.www.ads-software.com/wp-content/themes/mytheme/style.css" />I want
<a href="/">Home</a>
<link href="/wp-content/themes/mytheme/style.css" />From: RFC3986
A relative reference that begins with a single slash character “/” is termed an absolute-path reference.
If you read the RFC it makes it clear but basically I use this method so that all of my code isn’t hardcoded but can easily be moved to another host.
This is relevant:
<?php echo get_settings('siteurl'); ?>
Help!?
-CD
- The topic ‘How to switch to absolute-path references (siteurl)?’ is closed to new replies.