Welcome to Geeklog, Anonymous Tuesday, July 08 2025 @ 02:41 pm EDT
Geeklog Forums
'site_url'
Status: offline
Forum User
Full Member
Registered: 02/20/02
Posts: 179
hi all, how can i use "reletive links" on my GL site? as mention in other threads posted, we use 2 test servers to test out GL before moving them onto the production server and at times we make multiple copies of GL within each test server and the URL may be slightly different but we just need to alter config.php and lib-common.php to reflect everything and the site loads but static pages and blocks may not work as they're hard coded. Anyway to say instead of using
<a href=http://www.siteurl.com/index.php?somelink>link here</a>
we can use something like a href='site_url'/index?somelink>link here </a> instead? since config.php already has called for this in line:
$_CONF['site_url'] = 'http://www.siteurl.com';
thanks in advance.
<a href=http://www.siteurl.com/index.php?somelink>link here</a>
we can use something like a href='site_url'/index?somelink>link here </a> instead? since config.php already has called for this in line:
$_CONF['site_url'] = 'http://www.siteurl.com';
thanks in advance.
22
19
Quote
Status: offline
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Quote by etegration: <a href=http://www.siteurl.com/index.php?somelink>link here</a>
How about <a href="/index.php?somelink">link here</a>
bye, Dirk
21
22
Quote
Status: offline
Forum User
Full Member
Registered: 02/20/02
Posts: 179
Quote by Dirk:
How about <a href="/index.php?somelink">link here</a>
bye, Dirk
Quote by etegration: <a href=http://www.siteurl.com/index.php?somelink>link here</a>
How about <a href="/index.php?somelink">link here</a>
bye, Dirk
possible to call in 'site_url'??? i really need it, my GL installation's folder structure is very different as it has been modifed a lot over the years.
14
18
Quote
Status: offline
Forum User
Full Member
Registered: 02/20/02
Posts: 179
Quote by Dirk:
Nope. There are no variables in stories.
The only other thing I could think of: <a href="http://www.geeklog.net/article.php/autolinks">Autolinks</a>?
bye, Dirk
Quote by etegration: possible to call in 'site_url'???
Nope. There are no variables in stories.
The only other thing I could think of: <a href="http://www.geeklog.net/article.php/autolinks">Autolinks</a>?
bye, Dirk
thanks anyway.
19
20
Quote
All times are EDT. The time is now 02:41 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content