01-06-2016, 08:38 PM
BIG EDIT!
this tutorial haven't worked for me personally! but this .htaccess file worked for me!
Download: http://pastebin.com/download/q1mpgzU1
RAW: http://pastebin.com/raw/q1mpgzU1
Pastebin: http://pastebin.com/q1mpgzU1
Hello,
Have you ever tested to make 'for example' an blog system written in ".HTML" files?
This tutorial will let some of your website visitors to be amazed that's you have login,register,logout,etc... system written in .html
CAUTION: I know! a lot of people will understand this thread incorrectly... please be careful this thread let you know how to make .html files execute PHP
So let's start! it's super simple.
That's all for the steps
will this disallow .php? No! it will allow PHP to be executed with ".php" ".html" ".htm"
BUT! in some Nginx servers it will disallow ".php"
So edit the above line with this:
while the different is "we've added .php & .php5 & .php3 at the end of the line!"
AzureWeb's main CEO & Founder.
this tutorial haven't worked for me personally! but this .htaccess file worked for me!
Download: http://pastebin.com/download/q1mpgzU1
RAW: http://pastebin.com/raw/q1mpgzU1
Pastebin: http://pastebin.com/q1mpgzU1
Hello,
Have you ever tested to make 'for example' an blog system written in ".HTML" files?
This tutorial will let some of your website visitors to be amazed that's you have login,register,logout,etc... system written in .html
CAUTION: I know! a lot of people will understand this thread incorrectly... please be careful this thread let you know how to make .html files execute PHP
So let's start! it's super simple.
- Edit ".htaccess"; or ... create a new file named ".htaccess" (if it doesn't exists)
- Add this line at the first line of ".htaccess"
Code: (Select All)
AddHandler x-httpd-php .html .htm
That's all for the steps
will this disallow .php? No! it will allow PHP to be executed with ".php" ".html" ".htm"
BUT! in some Nginx servers it will disallow ".php"
So edit the above line with this:
Code: (Select All)
AddHandler x-httpd-php .html .htm .php .php5 .php3
while the different is "we've added .php & .php5 & .php3 at the end of the line!"
Verifying if it worked!
Thank you & best regards,* create an file and name it "anything.html" .
in this file add:
in this file add:
Code: (Select All)
<?php
echo "test!";
?>
AzureWeb's main CEO & Founder.