Jump to content

.htaccess file not working annymore

Sjaak Snor

Dear,

 

A few days ago my site stopped working. Instead of displaying my site, it gave me a download of my index.html source code. Including the php pieces that were in there.

 

After some digging i came to the conclusion that the problem suddenly was in my .htaccess file. After removing the rule 

AddType application/x-httpd-php .html .htm 
(This line says that html and htm should be executed as php)
It loaded the page (empty page, cause the php included the navbar, homepage(logged in or not) and footer) normally.

I really dont know what happens, i have 4 sites by on the same hositng package, where 2 sites dont work annynore(the 2 with the AddType in the .htaccess) and the other 2 are working fine.

 

My site relies really on that line of code, everything is writtin in HTML en rewrite it all with php is just way to much work.

 

Any tips that could work?

Link to comment
Share on other sites

Link to post
Share on other sites

Just tried this one, however no results ;(
It is a really weird problem i guess

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×