![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Are either of these correct? Is it an issue with my code or a server limitation? |
#3
| |||
| |||
|
|
The two pages of code have the following snippets: !--#include file="top.ssi" --> (in the index.shtm file) or !--#include file="top.shtm"--> (in the index2.shtm file) |
#4
| |||
| |||
|
|
From: "darrel" <notreal (AT) hotmail (DOT) com Reply-To: "darrel" <notreal (AT) hotmail (DOT) com Newsgroups: macromedia.dreamweaver Date: Tue, 31 Aug 2004 15:59:27 -0500 Subject: Re: Server Side Includes Problem Are either of these correct? Is it an issue with my code or a server limitation? You can name it myinlude.monkeybutt if you want. The extension of the included file is irrelevant. The extension of the file that contains the include MAY be relevant. It all depends on how the ISP has set up the server. The server needs to know which files have includes. Now, a competent server admin will just set it up so that ANY file will be processed for SSIs automatically. However, a lot of ISPs will do the dumb thing and only let you use includes in files that end in '.shtml' The problem is that you are trying to send '.ssi' and '.shtm' files as html files. Your server apparently doesn't recognize either of those file types and is sending them as "text/plain" files will just show up as text files in Mozilla. Try using .htm, .html or .shtml and see if that resolves the issue. -Darrel |
#5
| |||
| |||
|
|
THANK YOU! I changed the name of the index file that has the includes code within it, and it fixed the problem! http://www.jimmy-ez.com/NewWebsite/index.shtml Previously, the file was named index.shtm -- when I changed it to index.shtml, suddenly the includes popped up correctly! It's a shame that the IPowerWeb tech support didn't know that this had to be done - it would have saved me hours of troubleshooting! Thank you again- Idelle From: "darrel" <notreal (AT) hotmail (DOT) com Reply-To: "darrel" <notreal (AT) hotmail (DOT) com Newsgroups: macromedia.dreamweaver Date: Tue, 31 Aug 2004 15:59:27 -0500 Subject: Re: Server Side Includes Problem Are either of these correct? Is it an issue with my code or a server limitation? You can name it myinlude.monkeybutt if you want. The extension of the included file is irrelevant. The extension of the file that contains the include MAY be relevant. It all depends on how the ISP has set up the server. The server needs to know which files have includes. Now, a competent server admin will just set it up so that ANY file will be processed for SSIs automatically. However, a lot of ISPs will do the dumb thing and only let you use includes in files that end in '.shtml' The problem is that you are trying to send '.ssi' and '.shtm' files as html files. Your server apparently doesn't recognize either of those file types and is sending them as "text/plain" files will just show up as text files in Mozilla. Try using .htm, .html or .shtml and see if that resolves the issue. -Darrel |
#6
| |||
| |||
|
|
Are either of these correct? Is it an issue with my code or a server limitation? You can name it myinlude.monkeybutt if you want. The extension of the included file is irrelevant. The extension of the file that contains the include MAY be relevant. It all depends on how the ISP has set up the server. The server needs to know which files have includes. Now, a competent server admin will just set it up so that ANY file will be processed for SSIs automatically. However, a lot of ISPs will do the dumb thing and only let you use includes in files that end in '.shtml' The problem is that you are trying to send '.ssi' and '.shtm' files as html files. Your server apparently doesn't recognize either of those file types and is sending them as "text/plain" files will just show up as text files in Mozilla. Try using .htm, .html or .shtml and see if that resolves the issue. -Darrel |
#7
| |||
| |||
|
|
Does this apply to servers running IIS? Can you use something other than asp? |
#8
| |||
| |||
|
|
ask your host if they will add the .monkeybutt extension as well. |
#9
| |||
| |||
|
|
Kindler Chase wrote: ask your host if they will add the .monkeybutt extension as well. Do monkeybutts really need extensions? Aren't they big enough as it is? |
#10
| |||
| |||
|
|
Mark Morse wrote: Does this apply to servers running IIS? Can you use something other than asp? Yes. Just ask your host what file extensions will process includes. If there is a particular extension you want to process includes, i.e., myinclude.monkeybutt, then ask your host if they will add the .monkeybutt extension as well. |
![]() |
| Thread Tools | |
| Display Modes | |
| |