Solved

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

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
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.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now