WordPress support from our community
Tagged: 404, custom template, error, errors, php
This topic contains 0 replies, has 3 voices, and was last updated by Kevin Cristiano 7 years, 8 months ago.
I am having problems displaying my custom 404.php page. When a page does error it gives me a 404 – File page not found – Server error.
I never ran wordpress on a Windows server before and i think it may be caused by the web.config file.
This site is using Custom page templates and can be seen here http://www.mlstechfair.com and just make a page error and you will see the server error.
Any help will be greatly appreciated
I’m not an expert on Windows server, but have you read these;
I have been fortunate (?) to run WordPress on IIS for a long time.
You will need to edit your web.config. The web.config is the IIS equivilant of an apache .htaccess file.
Specifically, you need to have the following:
Let me know off line if you need help in configuring this, I don’t know how to post XML code here without it being stripped 🙂
I have been running this for years. Let me know if you need any help editing the web.config
I uploaded two samples:
HTTP passthrough for 404.php to display –http://wpdev.kcristiano.com/wp-content/uploads/2011/09/webconfighttppassthrough.txt
Full web config (with pretty permalinks) http://wpdev.kcristiano.com/wp-content/uploads/2011/09/webconfigfull.txt
You must be logged in to reply to this topic.
WordPress NYC Community is proudly powered by WordPress and BuddyPress
Do you want to speak at our Meetup? >