Help with <head> and server path
Posted: 04 September 2008 03:15 AM   [ Ignore ]  
Research Assistant
RankRankRank
Total Posts:  375
Joined  07-06-2008

Hello all,

Everything is working when I view my site on my laptop (which also has apache installed, via localhost). However, when I try to view the site on another computer on the lan, the website doesnt load the images and the stylesheets. When I view source, it says http://localhost/..... shouldnt this be my ip address, instead of localhost (i.e. the server address)?

Im guessing its the way I defined the values inside href and src. Does anyone know where the problem is?

<html>
<
head>

    <
meta http-equiv="content-type" content="text/html;charset=iso-8859-2">
    <
meta name="author" content="some.com">
    
    <
link rel="stylesheet" href="{stylesheet=italfood/screen}" type="text/css" media="screen, projection">
    <
link rel="stylesheet" href="{stylesheet=italfood/print}" type="text/css" media="print">
    <!--
[if IE]><link rel="stylesheet" href="ie.css" type="text/css" media="screen, projection"><![endif]-->
    
    <
link rel="stylesheet" type="text/css" media="screen" href="{stylesheet=italfood/style0000}">
    
    
[removed][removed]
    [removed][removed]
    [removed][removed]
    
    
<link rel="alternate" type="application/rss+xml" title="RSS" href="{path=italfood/rss_2.0}" />
    <
link rel="alternate" type="application/atom+xml" title="Atom" href="{path=italfood/atom}" />
    
    <
title>{site_name} | {embed:current_page_label}</title>
</
head>

 Signature 

Live the News For a fun read on news entertainment and pop-culture

Profile
 
 
Posted: 06 September 2008 02:36 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
RankRankRank
Total Posts:  375
Joined  07-06-2008

Viewing the web site from another computer returns only text. Its not applying the css and js files accordingly.

Any suggestions?

 Signature 

Live the News For a fun read on news entertainment and pop-culture

Profile
 
 
Posted: 06 September 2008 10:43 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  324
Joined  03-18-2007

Is the site URL in your system preferences set to localhost or your IP?

Profile
 
 
Posted: 06 September 2008 11:33 PM   [ Ignore ]   [ # 3 ]  
Research Assistant
RankRankRank
Total Posts:  375
Joined  07-06-2008

Hi slapshotw, its set to localhost. I believe this is where the problem resides. Thanks

 Signature 

Live the News For a fun read on news entertainment and pop-culture

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64912 Total Logged-in Users: 26
Total Topics: 81864 Total Anonymous Users: 17
Total Replies: 440101 Total Guests: 179
Total Posts: 521965    
Members ( View Memberlist )
Newest Members:  bjmohrAqua193Bios Elementmjpoteetguimogranwelshmrcfthenetmonkeybenekwhobutsb