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]
So instead of
<link href="http://www.wordpress.org/wp-content/themes/mytheme/style.css" />
<link href="/wp-content/themes/mytheme/style.css" />
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'); ?>
- The topic ‘How to switch to absolute-path references (siteurl)?’ is closed to new replies.