Solved

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

Posted on 2015-01-09
1
71 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Change the background and font colors in Notepad++ 5 112
winscp 000webhost.com 6 73
Moving from Mcrypt to OpenSSL 18 45
Trying to install php56 on CentOS 7 get GPG error 5 28
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

856 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