Jump to content

[Problem solved] Open web site root but firefox prompt to download a file


Recommended Posts

Posted

I upload a index.php and the URL http://bravo.heliohost.org/index.php works fine.

 

However, when I open following URL in firefox:

http://bravo.heliohost.org

 

It always open a dialog and ask me whether to download a file.

If I open the URL in IE. The page show but the PHP code is not execute...

 

Please help me, thank you.

 

 

Note: I ever did following change in CPanel and modify /www/.htaccess

1) add "Apache Handler" with following value and remove it.

Handler: application/x-httpd-php

Extension(s): htm

 

2) add "MIME Types" with following value and remove it.

MIME type: application/x-httpd-php

Extension(s): htm

Posted

Try refreshing your browser first.

 

If your not using Frontpage Extensions than go to Frontpage Extensions at your cPanel and click Uninstall and see if that helps. You'll probably want to refresh before you check it again though.

 

Posted
Try refreshing your browser first.

 

If your not using Frontpage Extensions than go to Frontpage Extensions at your cPanel and click Uninstall and see if that helps. You'll probably want to refresh before you check it again though.

 

It works fine! Thank you. :lol:

Posted
It works fine! Thank you. :lol:

 

Good!

 

btw, I think this is what you want to parse htm files as php.

 

AddHandler application/x-httpd-php5 .htm

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...