The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Some SSIs not working and no error generated
wkgorey
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
Christian J
post Jul 1 2019, 12:19 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,630
Joined: 10-August 06
Member No.: 7



QUOTE(wkgorey @ Jul 1 2019, 04:52 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.

Double-check that estateagentsespana.com and estateagentsespana.com/index.htm is really the same file --maybe estateagentsespana.com actually loads an .shtml file? Or if estateagentsespana.com actually loads an .html file, double-check their inclusion file paths etc.

QUOTE
SSIs on other pages are also being ignored.

Does a test page with .shtml extension work? .html?

QUOTE

AddType text/html .shtml
AddHandler server-parsed .html
AddHandler server-parsed .htm

Can't say if that's correct, but in my experience, .htaccess directives for running PHP with .html extensions can be wildly different depending on how the server is set up.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
wkgorey
post Jul 1 2019, 02:01 PM
Post #3





Group: Members
Posts: 4
Joined: 1-July 19
Member No.: 26,921



QUOTE(Christian J @ Jul 1 2019, 07:19 PM) *

QUOTE(wkgorey @ Jul 1 2019, 04:52 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.

Double-check that estateagentsespana.com and estateagentsespana.com/index.htm is really the same file --maybe estateagentsespana.com actually loads an .shtml file? Or if estateagentsespana.com actually loads an .html file, double-check their inclusion file paths etc.

QUOTE
SSIs on other pages are also being ignored.

Does a test page with .shtml extension work? .html?

QUOTE

AddType text/html .shtml
AddHandler server-parsed .html
AddHandler server-parsed .htm

Can't say if that's correct, but in my experience, .htaccess directives for running PHP with .html extensions can be wildly different depending on how the server is set up.


Good ideas re trying a test page - both .shtml and .html extensions work properly, so the issue seems to be with .htm extension.


User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jul 1 2019, 03:32 PM
Post #4


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



It seems to work now. What did you do?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 29th March 2024 - 09:22 AM