Well im struggling with this,
Going by my original code that was is use with the last host,
Then the code in use at present just to have it working,
Then trying to merge them ive come up with this.
Code:
AddHandler application/x-httpd-php .html .htm
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(www\.)?theremotedoctor\.co.uk
RewriteRule ^(.*)$ https://www.theremotedoctor.co.uk/$1 [R,L]
## EXPIRES CACHING ##
<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"
</IfModule>
## EXPIRES CACHING ##
<Files ~ "^\.(htaccess|htpasswd)$">
deny from all
</Files>
Options Indexes
order deny,allow
<IfModule mod_headers.c>
<FilesMatch "\.(js|css|xml|gz)$">
Header append Vary: Accept-Encoding
</FilesMatch>
</IfModule>
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
AddHandler video/ogg .ogv
AddHandler video/mp4 .mp4
Having said that i still get a 403 error advising me i do not have permission to look/edit etc the index file.
The only way at present for me to have it working is this,
Code:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(www\.)?theremotedoctor\.co.uk
RewriteRule ^(.*)$ https://www.theremotedoctor.co.uk/$1 [R,L]
I dont even know what the old code does but like to put it in and have it there.
The videos etc work fine with it but not sure about other browsers etc.
Bookmarks