arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making .html like .php
#1
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 Wink

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"
AddHandler x-httpd-php .html .htm

That's all for the steps Wink

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:
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!


* create an file and name it "anything.html" .
in this file add:
<?php
echo "test!";
?>


Thank you & best regards,

AzureWeb's main CEO & Founder.


Messages In This Thread
Making .html like .php - by azureweb - 01-06-2016, 08:38 PM
RE: Making .html like .php - by RickB - 01-07-2016, 10:22 AM
RE: Making .html like .php - by Han105 - 01-07-2016, 01:08 PM
RE: Making .html like .php - by azureweb - 01-07-2016, 01:11 PM
RE: Making .html like .php - by Mr.Monkey - 01-08-2016, 01:26 AM
RE: Making .html like .php - by azureweb - 01-08-2016, 01:39 PM
RE: Making .html like .php - by RickB - 01-08-2016, 04:01 PM
RE: Making .html like .php - by Conan - 01-09-2016, 04:06 AM
RE: Making .html like .php - by azureweb - 01-09-2016, 02:34 PM
RE: Making .html like .php - by Unixfy - 01-09-2016, 11:38 PM
RE: Making .html like .php - by SnoOpy - 01-11-2016, 04:38 AM
RE: Making .html like .php - by Littlemaster - 01-30-2016, 11:24 AM
RE: Making .html like .php - by tbelldesignco - 09-20-2020, 07:39 PM

person_pin_circle Users browsing this thread: 1 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting