|
|
Question : Get rid of 404 error
|
|
Hi guys,
We have IIS 6.0 installed on SBS 2003. I have one website in it. www.test.com There is only one file in the directory - Default.php. How can I set up the website so if a user types in www.test.com/test.php (or whatever) it will always redirect to www.test.com and not give the 404 error?
Thanks.
|
Answer : Get rid of 404 error
|
|
Well, okay... you need to just add additional docunet types to the default page settings on the web site's properties > Documents tab. Add the specific document name (ie, contact.htm) and then move it up to the top of the list so that it resolves first.
But just to clarify... they aren't really "redirected" to www.test.com , it's just that the default content page name is never displayed so it just gets hidden from the address when on that page. The user woudln't need to go to www.test.com/contact.htm (for example) they would just go to www.test.com and that would open contact.htm by default if you added it to the top of that list.
Jeff TechSoEasy
|
|
|
|