<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>html on Tutes Club</title><link>https://tutes.in/tag/html/</link><description>Recent content in html on Tutes Club</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 23 Jan 2019 10:03:37 +0000</lastBuildDate><atom:link href="https://tutes.in/tag/html/index.xml" rel="self" type="application/rss+xml"/><item><title>How to use .htaccess to run all .html files as .php by using PHP handlers in Apache w/o CGI?</title><link>https://tutes.in/how-to-use-htaccess-to-run-all-html-files-as-php-by-using-php-handlers-in-apache-w-o-cgi/</link><pubDate>Wed, 23 Jan 2019 09:52:54 +0000</pubDate><guid>https://tutes.in/how-to-use-htaccess-to-run-all-html-files-as-php-by-using-php-handlers-in-apache-w-o-cgi/</guid><description>&lt;p&gt;If you are not able to find the correct Handler, Simply create a .php file with the following contents:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-php" data-lang="php"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;&amp;lt;?&lt;/span&gt;&lt;span class="nx"&gt;php&lt;/span&gt; &lt;span class="k"&gt;echo&lt;/span&gt; &lt;span class="nv"&gt;$_SERVER&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;REDIRECT_HANDLER&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt; &lt;span class="cp"&gt;?&amp;gt;&lt;/span&gt;&lt;span class="err"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;and run/open this file in browser.&lt;/p&gt;
&lt;figure&gt;&lt;a href="https://tutes.in/wp-content/uploads/2019/01/application-handler.png"&gt;
&lt;img loading="lazy" src="https://tutes.in/wp-content/uploads/2019/01/application-handler.png"
alt="application httpd handler"/&gt; &lt;/a&gt;&lt;figcaption&gt;
&lt;p&gt;example application handler&lt;/p&gt;
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Use this output in .htaccess file&lt;/p&gt;
&lt;p&gt;Create a &lt;code&gt;.htaccess&lt;/code&gt; file at the root of your website(usually a folder named &lt;em&gt;public_html&lt;/em&gt; or &lt;em&gt;htdocs&lt;/em&gt; on linux servers) and add this line:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;AddType [[THE OUTPUT FROM ABOVE FILE]] .html .htm
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Example&lt;/p&gt;</description></item></channel></rss>