php - Apache rewrite rule forces download -


I'm trying to turn off a PHP site developed by another encoder (which is not around now) The problem with Apache's rewriting rules, I am asking to download the file on the target server, I'm sure this is a simple problem, but I'm having some difficulty answering I am using Apache on a (dedicated) Ubuntu server and A standard installation of PHP5 I'm porting along and porting from sharing a shared server where everything is working fine. During the ports, any site files have been changed.

The .htaccess file contains this code (only)

 # Use the PHP5 as the default AddHandler application / x-httpd-php5 .php option - follow the order Simulic Rewrite rules on rewriting engine ^ html /(.*) /index.php?init=site=/$1\/$2\/$3\/$4\/$5\/$6\/$7\/$8\/$9 Rewrite rules ^ MICRAT $ / INDEX.FP? Admin = True Rewrite ^ Mikeart / $ / IndexFP? Admin = TrueRelease® ^ MIRCART /(.*)$ /index.php?init=admin/ $ 1 \ / $ 2 \ / $ 3 / $ 4 / $ 5 / $ 6 / $ 7 / / $ 8 / $ 9 & admin = true 

When I try to open the file, the browser tries to download the file (index.php) instead of displaying it

" You have chosen to open [Dialog is shown blank]

which is one: application / x-httpd-php .... "

I think that I'm either in PHP or Apache configurations Be done, but what?

EDIT: To clarify, Server Apache2 is running and there are many, functions, PHP sites in it. Apart from this, if I delete the .htaccess file and run a simple phpinfo display page then everything is fine, so this is not the execution of PHP per view.

I think the mime type application / x-httpd-php5 is valid is not. I tried it on my local machine and due to this it was such a deal.

Did you try the application / x-httpd-php instead?


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -