Forcing Absolute URL Paths
Permalink
This may seem like a strange problem, but I need make the relative URLs generated on a page into absolute paths.
For example, I need to have the stylesheets, javascript, image paths, and other links resolve to a full URL.
How can this be accomplished? I know it's possible...
For example, I need to have the stylesheets, javascript, image paths, and other links resolve to a full URL.
How can this be accomplished? I know it's possible...
What I ended up doing was putting the following line of code into my page template:
I defined the BASE_SSL_URL and DIR_SSL_REL in my site.php file.
<base href="<?php BASE_SSL_URL . DIR_SSL_REL ?>" />
I defined the BASE_SSL_URL and DIR_SSL_REL in my site.php file.
Thanks shadowcomputers, that was a big help. Sometimes the simplest stuff is the hardest to find.
BASE_URL =http://www.example.com
DIR_REL = directory_of_c5_install (This is empty if installed on the root of the domain)
If you are creating themes you can always use: