Stuck with IIS (warning newbie inside)
am 29.06.2007 11:53:10 von Marco.Quattrini
Hi guys, first of all I apologize for my probably poor English (I'm
Italian) and being such a newbie on IIS related arguments.
I created some very simple .html pages for my intranet, they only
contain text and are linked the one with the other.
I placed all these pages (organized in subfolders contained in a main
folder) on the data disk of my IIS (v6.0) server. If I open my
index.html page with a browser everything works fine and neat, I can
navigate through all the pages and back.
Since I really don't know how to publish this site in order to let the
other users to reach it, I did the following: I created a new Virtual
Directory and pointed it to the main folder containing all of my
pages, images and subfolders. During the creation process everything
worked fine.
The problem occurs when I point a browser to: http://iis_server_name/virtual_directory_name,
the main page (index.html) opens up, but it does not load the image in
the header and the links to the other pages do not work.
I'm wondering what can I do to correct this problem.
Any piece of advice will be very helpful.
Thanks in advance for your time and patience.
Marco
Re: Stuck with IIS (warning newbie inside)
am 29.06.2007 16:48:20 von Marco.Quattrini
OK, I found out where my error was.
Instead of compiling the tags as I did, the correct form is "../
Travel/Travel_main.html" where ".." substitutes the main folder
containing my pages
Thanks
Re: Stuck with IIS (warning newbie inside)
am 01.07.2007 04:10:09 von David Wang
On Jun 29, 7:48 am, Marco.Quattr...@gmail.com wrote:
> OK, I found out where my error was.
>
> Instead of compiling the tags as I did, the correct form is "../
> Travel/Travel_main.html" where ".." substitutes the main folder
> containing my pages
>
> Thanks
Actually, the problem is with how you are writing the HTML page. It is
very hard-coded, so as soon as you move files around (such as move the
main.html into a vdir), everything breaks.
If you plan to progress beyond small number of web pages, then you
want to invest in a web site editing tool to help track and author the
correct HTML links for you, even as you move pages around.
Basically, web pages contain text and logical hyperlinks. If you ever
change the location/hierarchy of folders/images/files such that
hyperlinks are broken, you will have to fix all the web pages
containing those links. This is easy when you have a small handful of
pages, but quickly become a headache to manage when you have more web
pages that link with each other. This is when you need software tools.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//