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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SETTING THE SOURCE IN AN HTML FILE 1

Status
Not open for further replies.

johngiggs

Technical User
Oct 30, 2002
492
US
I currently have websites running on two separate servers, and the coding in the HTML file specifies that the file resides on that particular system. In order to discontinue to have to copy the data over manually and still keep the two servers in sync I have decided to use a shared drive so that both servers' content will be the same. Currently the source code in my HTML files looks like the example below

<li><a href=&quot;../December/gp120202.htm&quot;>December 2, 2002</a></li>
<li><a href=&quot;../December/gp120302.htm&quot;>December 3, 2002</a></li>
<li><a href=&quot;../December/gp120402.htm&quot;>December 4, 2002</a></li>
<li><a href=&quot;../December/gp120502.htm&quot;>December 5, 2002</a></li>

If I want to make it source another server which is named Morris what would I do (without having to change each line to say:

<li><a href=&quot;//morris/shared/operations support/reports/web reports/GP Daily Reports/December/gp120202.htm&quot;>December 2, 2002</a></li>

Basically I just want the page to look at \\morris\shared rather than locally. Any help would be greatly appreciated.

Thanks,

John
 
Hi Guys,

Just add the following to your head section.

<base href=&quot;//morris/shared/operations support/reports/web reports/GP Daily Reports/&quot;>

Hope this helps Wullie

- Send your e-mail to santa!! [santa]

The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Wullie,

Thanks!! That's exactly what I was looking for, but I couldn't remember how to do it!! I'll give it a shot today!!

Thanks,

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top