Showing results for 
Show  only  | Search instead for 
Did you mean: 

Newbie with addtype/handler question


Yesterday i moved over to be hosted with GD

Here is my site

I am happy with what ive done but would like some assistance with the htaccess file please.

The code below was in use with the old host.

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
<Files ~ "^\.(htaccess|htpasswd)$">
deny from all
Options Indexes
order deny,allow
<IfModule mod_headers.c>
  <FilesMatch "\.(js|css|xml|gz)$">
    Header append Vary: Accept-Encoding
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddType application/x-httpd-php .htm .html
AddType video/ogg  .ogv
AddType video/mp4  .mp4

But i was having issues when clicking on a page etc it wanted to download the page as opposed to show it.

so at present i just have this in the htaccess file so the site operates.

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(www\.)?theremotedoctor\
RewriteRule ^(.*)$$1 [R,L]

So i am looking for some advice if i may ask for what code to use as the following gave me a 403

AddType application/x-httpd-php .htm .html

AddHandler application/x-httpd-php .html .htm

AddHandler application/x-httpd-php5 .html .htm

What is the correct addhandler to use