D
DanTg
Hi all,
I want to build a custom 404 error page that using asp will
dynalically build the page.
Here is my problem. I am building a directoy website which has over
3000 categories. I do not want to create a category page for each one
so I though I would try and cheat a little and use the 404 to make it
look as if the page exists and put out the relevant information.
The website is:
http://www.pricerequest.co.uk/
The page I am linking to (which does not really exist) is:
http://www.pricerequest.co.uk/a/Cars_Motorbikes.html
The page you see when you go to
http://www.pricerequest.co.uk/a/Cars_Motorbikes.html is actually the
404 page.
So what I want it to do is the 404 page ASP code will look at the page
name 'Cars_Motorbikes' search the categories database table and pull
out the category information.
So in IIS I tried setting the Custom Errors 404 Message Type as File
but IIS does not or I can't get this page to process it as ASP to then
dynamically build the page.
The 2nd thing I tried was setting the Message Type as URL. This works
but the URL string looks like:
http://www.pricerequest.co.uk/a/cat...www.pricerequest.co.uk/a/Cars_Motorbikes.html
When really I want the URL to look like:
http://www.pricerequest.co.uk/a/Cars_Motorbikes.html
Does any one know how I can do this in IIS? Is there any external
filters, executables that can make IIS do this?
Thanks,
Dan Chapman
I want to build a custom 404 error page that using asp will
dynalically build the page.
Here is my problem. I am building a directoy website which has over
3000 categories. I do not want to create a category page for each one
so I though I would try and cheat a little and use the 404 to make it
look as if the page exists and put out the relevant information.
The website is:
http://www.pricerequest.co.uk/
The page I am linking to (which does not really exist) is:
http://www.pricerequest.co.uk/a/Cars_Motorbikes.html
The page you see when you go to
http://www.pricerequest.co.uk/a/Cars_Motorbikes.html is actually the
404 page.
So what I want it to do is the 404 page ASP code will look at the page
name 'Cars_Motorbikes' search the categories database table and pull
out the category information.
So in IIS I tried setting the Custom Errors 404 Message Type as File
but IIS does not or I can't get this page to process it as ASP to then
dynamically build the page.
The 2nd thing I tried was setting the Message Type as URL. This works
but the URL string looks like:
http://www.pricerequest.co.uk/a/cat...www.pricerequest.co.uk/a/Cars_Motorbikes.html
When really I want the URL to look like:
http://www.pricerequest.co.uk/a/Cars_Motorbikes.html
Does any one know how I can do this in IIS? Is there any external
filters, executables that can make IIS do this?
Thanks,
Dan Chapman