Some SSIs not working and no error generated |
Some SSIs not working and no error generated |
wkgorey |
Jul 1 2019, 09:52 AM
Post
#1
|
Group: Members Posts: 4 Joined: 1-July 19 Member No.: 26,921 |
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: QUOTE <Files 403.shtml> order allow,deny allow from all </Files> 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 This post has been edited by wkgorey: Jul 1 2019, 10:11 AM |
pandy |
Jul 1 2019, 10:49 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,753 Joined: 9-August 06 Member No.: 6 |
Looks alright to me. Standard method.
But I'm wondering about this bit. CODE <Files 403.shtml> order allow,deny allow from all </Files> Have you written that yourself? Have your site at some point been hacked? If you didn't put it there yourself, look for the mentioned php file. https://security.stackexchange.com/question...-are-showing-up |
wkgorey |
Jul 1 2019, 11:28 AM
Post
#3
|
Group: Members Posts: 4 Joined: 1-July 19 Member No.: 26,921 |
Looks alright to me. Standard method. But I'm wondering about this bit. CODE <Files 403.shtml> order allow,deny allow from all </Files> Have you written that yourself? Have your site at some point been hacked? If you didn't put it there yourself, look for the mentioned php file. https://security.stackexchange.com/question...-are-showing-up I put that in myself - it was needed to use custom 403 error page. I'll take it out and see if that makes any difference |
Lo-Fi Version | Time is now: 26th September 2024 - 01:31 AM |