Includes non-working

I have built a jquerymobile (/ mobile /) site on my host and it works fine. Moved it to the client host and it didn't boot, just a gray gray boot circle in the middle.

I am using inbound websites and for my host had to add these lines to the .htaccess file to make it work:

AddType text/html .shtml
AddHandler server-parsed .shtml .html .txt
Options Indexes FollowSymLinks Includes

      

this is the line to include the header which I think is causing the download issue on the client host:

<!--#include file="header.txt" -->

      

currently .htaccess on client host has the following:

Options +ExecCGI
AddHandler x-httpd-php5 .html .htm .txt

      

when i changed it to this:

Options +ExecCGI
AddHandler x-httpd-php5 .html .htm .txt
Options Indexes FollowSymLinks Includes

      

it caused an "Internal Server Error" on the main site and mobile, so I changed it.

I removed the included ones and added the normal html and it works fine on the client host, so the inclusion is definitely a problem, but I would like to keep the inboxes.

Any ideas on what I can do to enable it? Thank.

+3


source to share


1 answer


I decided. just changed the syntax:

<!--#include file="header.txt" -->

      

to



<?php include 'header.txt'; ?>

      

and everything works fine.

0


source







All Articles