Apache AddHandler: Run ASP code as PHP

guitar- picture guitar- · Jul 16, 2010 · Viewed 7.9k times · Source

I'm running XAMPP.

Is there a line I can add to .htaccess or http.conf to make ASP be parsed and handled as PHP pages?

I had it setup before but can't remember how to do it. What I've tried so far hasn't worked.

Edit: None of these solutions are working, I've tried everything.

Answer

demircan picture demircan · Nov 4, 2012

If none of the solution above is ok with you, check your Server API with phpinfo(); method.

If Server API is CGI or FAST CGI change it to Apache 2.0 Handler.You can do it using Plesk Panel or CPanel.

Another option is not to change Server API but .htaccess or httpd.conf : http://avinashsing.sunkur.com/2012/04/19/how-to-map-another-file-extension-to-the-php-parser-through-htaccess/.

But I have solved my problem with the first one.