wkennyspain
07-01-2019, 04:43 PM
SSI's on my index page work fine when it is found as the default page if I type estateagentsespana.com into browser address bar.
But if I type estateagentsespana.com/index.htm into the address bar, the SSIs are ignored. SSIs on other pages are also being ignored.
My htaccess:
AddType text/html .shtml
AddHandler server-parsed .html
AddHandler server-parsed .htm
<IfModule mod_rewrite.c>
RewriteEngine On
# redirect from non-www to www with https
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# redirect from http to https
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
Options -Indexes
ErrorDocument 404 /404.htm
But if I type estateagentsespana.com/index.htm into the address bar, the SSIs are ignored. SSIs on other pages are also being ignored.
My htaccess:
AddType text/html .shtml
AddHandler server-parsed .html
AddHandler server-parsed .htm
<IfModule mod_rewrite.c>
RewriteEngine On
# redirect from non-www to www with https
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# redirect from http to https
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
Options -Indexes
ErrorDocument 404 /404.htm