Jump to content

Recommended Posts

Posted

I am designing a site using server-side includes. I am having a problem with the links in the navigation bar (include).

 

my site files look like

 

+newsletters

-2003_newsletters

-2004_newsletters

-2005_newsletters

 

+Photos

-2004_photos

--jan_2004_photos

--feb_2004_photos

--mar_2004_photos

--apr_2004_photos

--jan_2004_photos

 

-2005_photos

--jan_2005_photos

 

+Includes

-top_navigation

-side_navigation

 

+assets

-logo.jpg

-buttons.jpg

 

I have each HTML page in the corresponding folder with the supporting assets. My problem is when I use a SSI from the includes folder the link to the logo.jpg does not work since it is relative. in other words it will work for the index.shtml file but when I have a photos.HTML in the photos folder the path to the logo in the include doesn't work.

 

How should I fix this? Should I just use an absolute URL, or should I reorganize the site somehow?

Posted

If you use an absolute URL in the include files when the include is parsed into the subfolder HTML files the path would be set.

 

Is this what you are asking? Or have I completely missed it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...