# Custom 404 on windows server

**URL:** <https://forum.kirupa.com/t/custom-404-on-windows-server/239853>\
**Category:** programming\
**Created:** [September 26, 2007, 4:41pm UTC](https://forum.kirupa.com/t/custom-404-on-windows-server/239853 "2007-09-26T16:41:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dru\_nasty](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@dru\_nasty](https://forum.kirupa.com/u/dru_nasty)\
**Post date:** [September 26, 2007, 4:41pm UTC](https://forum.kirupa.com/t/custom-404-on-windows-server/239853/1 "2007-09-26T16:41:20Z")

</div>

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 that don’t exist.  
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](http://asp.net).  
Can someone shed some light?
