Solved

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

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

910 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

23 Experts available now in Live!

Get 1:1 Help Now