How to execute php files with .html extension?
问题 i have problem with my site, when i try to convert php to html, i got this error Not Found and this is .htaccess RewriteEngine on RewriteRule ^(.*)\.php$ /ver1/$1.html [R=301,QSA,L] all files in folder ver1 i see this post .php url to .html url but not work with me i just need convert php to html and if i go to index.php i go to index.html and make all url html 回答1: Rename your .php file to .html and add this line in your .htaccess AddType application/x-httpd-php .html .htm 回答2: You need to