homepage Welcome to WebmasterWorld Guest from 54.204.59.230
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Microsoft / Deprecated - Microsoft Windows OS (XP/NT/Vista)
Forum Library, Charter, Moderators: bill

Deprecated - Microsoft Windows OS (XP/NT/Vista) Forum

    
Probably a dumb iis question
links won't work.
egurr




msg:1570566
 2:18 pm on Feb 28, 2006 (gmt 0)

I'm working on an IIS server, making some changes to a pretty horrible site. It's hosted with Win2000 server and IIS, dynamic IP address with TZO.
It's a mess. I can't even get a basic link to work (href)unless I put in the entire path, [etc.etc....]
Anyone have any ideas on this?
This would be so much easier with apache.

 

bill




msg:1570567
 1:47 am on Mar 1, 2006 (gmt 0)

Welcome to WebmasterWorld egurr.

It's tough to say what might be wrong with your system with the information given. For example, where are you trying to get links to work? If links aren't working in your HTML I might guess your code is off rather than the server settings. Have you validated your HTML [validator.w3.org]?

This would be so much easier with apache.

What's stopping you? ;) You can run Apache on Windows just fine. You're not stuck using IIS if you're not comfortable with it.

egurr




msg:1570568
 2:54 am on Mar 1, 2006 (gmt 0)

I can't run Apache because it's a customers server.
The code is fine because I can put in the full path and it works just great. But if I do a /about.htm I get nothing (in Dreamweaver). It's almost like a missing .htaccess file, but I don't think those exist in IIS.

bill




msg:1570569
 4:05 am on Mar 1, 2006 (gmt 0)

Have you validated the code at the link above?

Please post an example of the HTML code that works and an example that doesn't. (Use example.com for the domain.)

egurr




msg:1570570
 3:26 pm on Mar 1, 2006 (gmt 0)

This works
<a href="http://www.thewebsite.com/about.htm">About</a>

This doesn't
<a href="about.htm">About</a>

Thanks for the response by the way.
I've used this forum for months but just recently registered. I'm amazed at how good this site is. It never turns in to soap opera, flaming, or any other such nonsense as so often happens on other forums.
Everyone here is pretty much all business, all the time.

bill




msg:1570571
 10:17 am on Mar 2, 2006 (gmt 0)

Is the entire page's HTML valid? Are there any errors?

Are you sure that the file being linked to is in the same folder in relation to the page being linked from?

Scruffy




msg:1570572
 10:30 am on Mar 2, 2006 (gmt 0)

Relative addressing in ISS is usually straightforward.

It's behaving as if the page you are viewing is not actually where you think it is.

What happens if you substitute the server IP address for www.etc.etc?

egurr




msg:1570573
 4:59 pm on Mar 2, 2006 (gmt 0)

<< Relative addressing in ISS is usually straightforward.

It's behaving as if the page you are viewing is not actually where you think it is.

What happens if you substitute the server IP address for www.etc.etc?>>
This is what I thought initially. But the docs are in the same folder. I cna't point to an IP address becuase they are using a dynamic dns service (TZO).
The entire setup is pretty bad but you'd think I could at least create a basic hyperlink.

As for the other question, all of the html validates.
The wierdest part is i wrote a little java script, put an href inside to just /about.htm, and it works fine.
I'm starting to wonder if the IIS server just needs to be reinstalled.

LifeinAsia




msg:1570574
 5:15 pm on Mar 2, 2006 (gmt 0)

What is the exact link you are using? Are you using "about.htm" or "/about.htm" on the page?

When you view the page online and mouse over the link, what is the exact URL showing on the status bar?

Scruffy




msg:1570575
 7:19 pm on Mar 2, 2006 (gmt 0)

Have you tried updating both pages with a small change, just to make absolutely sure you are looking at two files in the same directory?

egurr




msg:1570576
 9:38 pm on Mar 2, 2006 (gmt 0)

<<What is the exact link you are using? Are you using "about.htm" or "/about.htm" on the page?

When you view the page online and mouse over the link, what is the exact URL showing on the status bar? >>

I've actually tried it both ways.
And when I mouse over nothing shows up until I put in the full path, then the [blahblahblah.com...]
shows up and works.
I'm starting to think maybe a DNS foreward problem with TZO. I checked their site and don't see anything related.

egurr




msg:1570577
 9:39 pm on Mar 2, 2006 (gmt 0)

Scratch that last reply.
I just checked again and even on the links with just about.htm, the entire url shows up at the bottom, but it won't do anything.

bill




msg:1570578
 12:32 am on Mar 3, 2006 (gmt 0)

Try this test page and see which links work:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Test Links</title>
</head>
<body>
<ul>
<li><a href="http://www.example.com/about.htm">About (full path)</a></li>
<li><a href="/about.htm">About (relative #1)</a></li>
<li><a href="about.htm">About (relative #2)</a></li>
</ul>
</body>
</html>

I'm guessing that there is something else in the page that is affecting this.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Deprecated - Microsoft Windows OS (XP/NT/Vista)
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved