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...

rbarcus
View Replies:
shadowcomputers replied on at Permalink Reply
shadowcomputers
In PHP you have defined variables of:
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:
$this->getThemePath();
rbarcus replied on at Permalink Reply
rbarcus
What I ended up doing was putting the following line of code into my page template:

<base href="<?php BASE_SSL_URL . DIR_SSL_REL ?>" />


I defined the BASE_SSL_URL and DIR_SSL_REL in my site.php file.
travistanderson replied on at Permalink Reply
travistanderson
Thanks shadowcomputers, that was a big help. Sometimes the simplest stuff is the hardest to find.