A non-technical owner of an authority site with 1000s of asp/aspx pages decided to rebuild the site using WordPress on a new cPanel server. The original site was on a windows server and built with ASP.net. The problem is that they now had lots of dead external links going to *.asp and *.aspx pages that no longer existed.
I can get the static, mostly html content from the old site and wrap a php template derived from the WordPress template around it
I’ve added the following lines to .htaccess file so that asp and aspx files should be able to use php code, but this is not working.
AddHandler application/x-httpd-php .asp
AddHandler application/x-httpd-php .aspx
Any suggestions about getting php code to execute with files ending in .asp/.aspx on a linux host?
You can also set mime type handler using a RewriteRule
Try :
x is optional in the pattern above ,so it matches both .asp or .aspx .