Forum Moderators: mack

Message Too Old, No Replies

URL redirect to main page problem...

i cant redirect my URL to my main page

         

joan_0618

5:04 am on Nov 5, 2003 (gmt 0)

10+ Year Member



i have just uploaded my files using WS FTP.
i have my default.asp (before the "/" directory) with the code:

***********
<%
Response.Redirect
"http://www.***.com/website-countdown/intro.html"
%>

**********

when i tried browsing my page ( URL:www.***.com/) an error appears

********
http 404 Not Found
**********

what would be the problem?

what would be the correct link codes?

webboy1

2:20 pm on Nov 5, 2003 (gmt 0)

10+ Year Member



To fix the first problem:
Try putting brackets around your redirect so your code should look like:

<%
Response.Redirect
("http://www.***.com/website-countdown/intro.html")
%>

Your second problem:

This could be to do with the way your server is setup. Have you tried putting the exact URL into the address bar?

If this works then it sounds like the server is just not recognising your homepage filename. In IIS on a windows server you have to tell the server what files to look for for a homepage. i.e. index.html, default.asp etc. If the name of your homepage is not in this list then you will get the error you are seeing. What filename have you given your homepage? Try renaming it (just as a test) to something like index.html or index.htm.

Webboy