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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...