Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Giles Buchanan
Giles Buchanan
3,824 Points

My own website works fine on the localhost but the hosting company tells me I need a web.config file, how do I make this

The Hosting company is GoDaddy? the main page is a login page that checks login details against a database and passes input to the next page. it works like a dream on my local host even querying the dB when its hosted on their server. but once its live all I get is a 500 internal server error and minimal information in error log. is there a template for this file that I can use? what info does it need to contain?

thanks in advance Giles

1 Answer

Ian Hattendorf
Ian Hattendorf
7,715 Points

Sounds like they are using IIS, this page shows some example web.config files for PHP: https://www.stokia.com/support/misc/web-config-default-website-document.aspx