Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 07:05 am EST

Geeklog Forums

'site_url'


Status: offline

etegration

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.
http://www.etegration.com.sg
http://www.itcow.com
http://www.ministryofhosting.com
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
 Quote

Status: offline

etegration

Forum User
Full Member
Registered: 02/20/02
Posts: 179
Quote by 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.
http://www.etegration.com.sg
http://www.itcow.com
http://www.ministryofhosting.com
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by etegration: possible to call in 'site_url'???

Nope. There are no variables in stories.

The only other thing I could think of: Autolinks?

bye, Dirk
 Quote

Status: offline

etegration

Forum User
Full Member
Registered: 02/20/02
Posts: 179
Quote by 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.
http://www.etegration.com.sg
http://www.itcow.com
http://www.ministryofhosting.com
 Quote

All times are EST. The time is now 07:05 am.

  • 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