xhtml - .htaccess to web.config php issue -


i've been hitting these boards , i'm not finding solution. students redesigned website non-profit rescue group , honestly, programming not forte, as coding is.

website: http://www.adoptarpo.org/ using single stats.php file allow easy editing of single file show , update on webpages, reflecting changing numbers of adoptions.

test server linux, running .htaccess file following: options -indexes addtype application/x-httpd-php .html

the following first line of code before html index.html, located here: <?php echo '<?xml version="1.0" encoding="utf-8"?>';?>

further down on index.html file, have following: <?php include("stats.php");?>

in configuring web.config file, other hosting provider (who uses windows webservers), uploaded following root:

<?xml version="1.0" encoding="utf-8"?>`    <configuration>      <system.webserver>         <directorybrowse enabled="false" />      </system.webserver>    </configuration>` 

this not resolve problem of pulling data stats.php. doesn't make difference if remove <?php echo '<?xml version="1.0" encoding="utf-8"?>';?> first line of .html file or not.

now, when insert following, web.config file, hell breaks loose , following when going www.adoptarpo.org : page cannot displayed because internal server error has occurred.

obviously, i'm doing wrong, life of me, i'm unable figure out.

try adding these 3 lines .htaccess file.

<files index.html> addtype application/x-httpd-php .html </files> 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -