Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

set a url that I can then reference for all images and hrefs

Status
Not open for further replies.

PushCode

Programmer
Dec 17, 2003
573
US
I'm developing a site on my dev server with a root url like this:
And for my links, images and javascript references I'll code theme like this:
<a href="/the%20dir/thepage.aspx"... or <img src="/test%20pages/theimg.jpg"... etc. They then properly link to the correct page/image at the full url of
However, I'm moving these pages over to a production server with a completely different url and site structure. More like this. or Depending on the users language preference.

So, what and where can I set that will be globally available so I can change my url references to something like this: ~globalVariableURL/the%20dir/... so my url references will work, regardless of environment or user language settings.

Any help on this would be greatly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top