Hi all
I have a web site, let's say hosted in a larger site, my site is like www.webweb.com/mysite.
I made many changes and some html files don't exist anymore ex:www.webweb.com/mysite/rates.html. But when there is an 404 error, I am redirected to www.webweb.com/404.html. I wonder if I could redirect to my personalized 404 error page like www.webweb.com/mysite/404.html.

I found that answer
make a Deflaut.asp
Response.Redirect /oldfile.html http://domain.com/path/to/new/file

at this adress
http://www.microsoft.com/windows2000/techinfo/reskit/en-us/default.asp?url=/windows2000/techinfo/reskit/en-us/iisbook/c03_redirects.asp

but it does not seems to work

Anybody have a solution for me?

Thanks

Redirection and http errors by doug

doug
Wed Jun 30 14:20:11 CDT 2004

I think your syntax is wrong.

have you tried:

response.redirect "/mysite/404.html"

doug
>-----Original Message-----
>Hi all
>I have a web site, let's say hosted in a larger site, my
site is like www.webweb.com/mysite.
>I made many changes and some html files don't exist
anymore ex:www.webweb.com/mysite/rates.html. But when
there is an 404 error, I am redirected to
www.webweb.com/404.html. I wonder if I could redirect to
my personalized 404 error page like
www.webweb.com/mysite/404.html.
>
>I found that answer
>make a Deflaut.asp
>Response.Redirect /oldfile.html
http://domain.com/path/to/new/file
>
>at this adress
>http://www.microsoft.com/windows2000/techinfo/reskit/en-
us/default.asp?url=/windows2000/techinfo/reskit/en-
us/iisbook/c03_redirects.asp
>
>but it does not seems to work
>
>Anybody have a solution for me?
>
>Thanks
>.
>

RE: Redirection and http errors by MathieuKurth

MathieuKurth
Wed Jun 30 14:42:01 CDT 2004



"doug" wrote:

> I think your syntax is wrong.
>
> have you tried:
>
> response.redirect "/mysite/404.html"
>
> doug
> >-----Original Message-----

Well maybe that this is not the good solution because if i have a asp file withresponse.redirect "/mysite/404.html"
if in the location bar i type the asp file name, i will be redirected, but what i want is, if there is a 404 error, a redirection to /mysite/404.html

Mathieu

Re: Redirection and http errors by Kristofer

Kristofer
Wed Jun 30 16:21:39 CDT 2004

Hello,

"But when there is an 404 error, I am redirected to www.webweb.com/404.html.
"

You are? That is not default behavior of IIS, so you have either configured
IIS to do that, or someone else have.

"I wonder if I could redirect to my personalized 404 error page like
www.webweb.com/mysite/404.html"

What about change the above redirection to the correct one?

You can configure custom errors on a folder level. In IIS Manager, right
click the folder and click Properties. Click on the "Custom Errors" tab, and
change whatever you want to change.

But by some reason, i think that you are using a shared host, and that you
do not have access to any IIS configurations. So in this case, no, you
cannot have a customized error messages, because you cannot configure it.

--
Regards,
Kristofer Gafvert - IIS MVP
http://www.ilopia.com - When you need help!


"Mathieu Kurth" <MathieuKurth@discussions.microsoft.com> wrote in message
news:37E6AEF3-6807-49C6-A339-14FC125F91C1@microsoft.com...
> Hi all
> I have a web site, let's say hosted in a larger site, my site is like
www.webweb.com/mysite.
> I made many changes and some html files don't exist anymore
ex:www.webweb.com/mysite/rates.html. But when there is an 404 error, I am
redirected to www.webweb.com/404.html. I wonder if I could redirect to my
personalized 404 error page like www.webweb.com/mysite/404.html.
>
> I found that answer
> make a Deflaut.asp
> Response.Redirect /oldfile.html http://domain.com/path/to/new/file
>
> at this adress
>
http://www.microsoft.com/windows2000/techinfo/reskit/en-us/default.asp?url=/windows2000/techinfo/reskit/en-us/iisbook/c03_redirects.asp
>
> but it does not seems to work
>
> Anybody have a solution for me?
>
> Thanks