Group Admins

  • Profile picture of Steve

WordPress Troubleshooting and Support

Public Group active 3 months, 3 weeks ago ago

WordPress support from our community

Displaying the 404 page problems

This topic contains 0 replies, has 3 voices, and was last updated by  Kevin Cristiano 7 years, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1251

    Chad
    Participant

    Hello,

    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

    Thanks
    Chad

    #2077

    Steve
    Keymaster
    #2078

    Kevin Cristiano
    Keymaster

    Hi,

    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:

    httpErrors existingResponse=”PassThrough”

    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

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.