introduction screenshots faq forum blog modules components download
Please use the search function and/or read the FAQ first.

Go to Topic: PreviousNext
Go to: Message ListNew TopicSearchLog InPrint View

Absolute and relative links in HTML pages



Posted by: ohadninio
November 05, 2008 02:07PM
I'm trying to use absolute link for an IMG tag such as
<img alt="logo" src="/jpegs/banner_TopLeft_Left.jpg" style="width: 215px; height: 85px" />
in one of my pages.

Notice especially the leading '/' at the src="

When the page is stored in the root directory - the image is displayed correctly.
When the page is stored in a subfolder - I only see the alternate text.

When I put the page on my site server it works perfectly.

Where can I instruct easyphp to relate to this situation correctly ?
Thanks, Ohad.

I'm a newbie to easyphp so maybe I'm just missing something out.
Here are the steps to reproduce :

1.Create an apache 2.2.3 alias in some directory (I'll refer to it as the main directory in the following steps)

2.Create a 'jpegs' directory in the main directory.
3.Put an image in the jpegs directory.
4.Create a 'pages' directory in the main directory.
5.Create a simple html page with an IMG tag directing it to the image in the jpegs directory and place it in the pages directory.
6.Now, try to activate this page in through easy PHP

Thanks again, Ohad.



Edited 1 time(s). Last edit at 11/05/2008 02:09PM by ohadninio.
Options: ReplyQuote


Go to: Message ListSearchLog In
Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.