Welcome to WebmasterWorld Guest from 54.224.148.71

Forum Moderators: bill

Message Too Old, No Replies

Probably a dumb iis question

links won't work.

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

Junior Member

10+ Year Member

joined:Feb 28, 2006
posts:124
votes: 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.
1:47 am on Mar 1, 2006 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:14658
votes: 66


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.
2:54 am on Mar 1, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 28, 2006
posts:124
votes: 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.
4:05 am on Mar 1, 2006 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:14658
votes: 66


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.)

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

Junior Member

10+ Year Member

joined:Feb 28, 2006
posts:124
votes: 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.

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

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:14658
votes: 66


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?

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

Junior Member

10+ Year Member

joined:Jan 16, 2006
posts:132
votes: 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?

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

Junior Member

10+ Year Member

joined:Feb 28, 2006
posts:124
votes: 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.

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

Moderator from US 

WebmasterWorld Administrator lifeinasia is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 10, 2005
posts:5599
votes: 29


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?

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

Junior Member

10+ Year Member

joined:Jan 16, 2006
posts:132
votes: 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?
9:38 pm on Mar 2, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 28, 2006
posts:124
votes: 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.

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

Junior Member

10+ Year Member

joined:Feb 28, 2006
posts:124
votes: 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.
12:32 am on Mar 3, 2006 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:14658
votes: 66


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.