Solved

.htaccess ??? Possible problem when displaying "html" pages, when "php" pages appear.

Posted on 2015-01-09
1
69 Views
Last Modified: 2015-01-20
Hello,

I am attempting to use a template that I purchased that was coded in html and javascript. The main index page appears now that I converted it from .html to .php. I believe the issue is that either the .htaccess or javascript is causing in compatibilities. When clicking a link, such as the about page, the browser displays the loading/waiting animation, and then jumps back to the main index homepage.

Please help give me an answer to this problem. Is it possible that I could edit the .htaccess file to support html and then use the original web template?

Thanks in advance.
0
Comment
Question by:DumbBoxRox
1 Comment
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 40541239
You just need to tell the server to parse with php:

AddType application/x-httpd-php .html
AddType application/x-httpd-php .php

in the .htaccess should do it, though you might want to check with the host if that is still a problem and get the sting they require.

Cd&
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show, step by step, how to integrate R code into a R Sweave document
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
The viewer will learn how to dynamically set the form action using jQuery.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question