Jump to content

Recommended Posts

Posted

I do all my php development using .html files, so that it's more transparent to the user what's actually going on on the backend. With other hosts, I've used .htaccess files to change it so that .html files are treated just as .php files are.

 

Does anyone know how to do this through TCH using either cpanel or a .htaccess file?

 

I've tried the following line in my .htaccess file in the public_html directory, but it didnt work:

 

AddType application/x-httpd-php4 .html

 

Thanks

 

Gadianton

Posted

You need to put something like this in .htaccess:

 

><Files *.html>
ForceType application/x-httpd-php
</Files>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...