Custom 404 on windows server

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
dru_nasty
Forum Commoner
Posts: 81
Joined: Sat Sep 10, 2005 10:26 am

Custom 404 on windows server

Post by dru_nasty »

I can't seem to get a .htaccess file to work on a windows IIS6 server for obvious reasons.
I'm only accustomed to linux/apache.

My problem is that when searching my clients site, old links come up to pages that don't exist any longer.
So I'd like a 404 to re-direct the user to the new home page. Like using the header() function in PHP.

I have no clue how to go about this on windows, plus i've heard i may need to use asp.net.
Can someone shed some light?
Doug G
Forum Contributor
Posts: 282
Joined: Sun Sep 09, 2007 6:27 pm

Post by Doug G »

Use the IIS management console to manage custom error pages.

My hosting company created a web control panel to let customers on shared IIS servers manage their own custom error pages remotely, but I don't know of any way to do the equivalent of a .htaccess file with IIS.
dru_nasty
Forum Commoner
Posts: 81
Joined: Sat Sep 10, 2005 10:26 am

Post by dru_nasty »

Thanks for the reply, but I believe I found out how.
By right clicking on the site in IIS (left pane) and choosing properties then going to the error tab, you can direct where the 404 points to. This is from research and hasn't be executed yet.
Post Reply