Forum Moderators: coopster
I ran into a bit of a problem. I'm trying to build a dynamic website on an iis webserver via php and mysql.
I'm sending all my 404 error pages to a php file. In this file I parse the url and load the appropriate html code to launch the html page. If the url does not exist the visitor will be redirected to the homepage. Now the problem : When I redirect to the php redirect file it shows up as plain text. I'm not familiar with iis, only with apache. Can somebody help me?
Turbo
If so, then you should add html files to parsing through php.
On IIS I'm not sure how to do this, but on Apache in httpd.conf you need to add
AddType application/x-httpd-php .php .html
Sorry for not a straight-forward answer.
Best wishes on the coming New Year!