I followed a "how to" explanation in order to execute php from an .html file, but I cannot get it to work within my .htaccess file. Is there perhaps another solution?
This is the code that I have in my .htaccess file.
AddType application/x-httpd-php .html
I currently do not have .html established within any of my a href tags as I did not wont .html displaying within the web address bar.
When I tried placing the above code in my .htaccess file and navigating to the site, my browser prompted me to download the page instead of navigating to it. Ultimately, I am trying to run this php include function on my html page instead of a .php page.
I have this code within my index page for links:
<li class="home-btn" style="border-bottom:5px solid #ff9b2e;"><a href="/"><img src="images/home.svg" width="37px" alt="3Elements Review, a literary journal based in Chicago, Illinois." border="none" id="home-btn"></a></li>
<li class="current" style="background-color:#313131;"><a href="current-journal" class="current">CURRENT JOURNAL<span class="sub-nav">Our latest and greatest!</span></a></li>
<li class="submit" style="background-color:#404040;"><a href="submit" class="current">SUBMIT<span class="sub-nav">Your writing</span></a></li>
<li class="guidelines" style="background-color:#505050;"><a href="submission-guidelines" class="current">SUBMISSION GUIDELINES<span class="sub-nav">Everything you need to know is here</span></a></li>
<li class="blog" style="background-color:#4b4b4b;"><a href="http://3elementsreview.blogspot.com" class="current">BLOG<span class="sub-nav">Just a blog</span></a></li>
<li class="past" style="background-color:#404040;"><a href="past-journals" class="current">PAST JOURNALS<span class="sub-nav">Browse our issue archives</span></a></li>
<li class="about" style="background-color:#313131;"><a href="about-3elements" class="current">ABOUT 3E<span class="sub-nav">What we're about</span></a></li>
It appears this answer from another thread specific to godaddy works. Not even the accepted answer, but an additional comment.
Using .htaccess to make all .html pages to run as .php files?
Options +ExecCGI
AddType application/x-httpd-php .php .html
AddHandler x-httpd-php5 .php .html