|
#1
|
|||
|
|||
|
I recently moved to hostgator and I have successfully migrated the site with one exception. I use the Castle Links appy and previously I had the following in the html page
<!--#include virtual="/cgi-bin/addalink/main.cgi" --> Which worked fine. Now it just displays a blank page. All the other scripts I have working except this one. Is there something special that needs to be done? Thanks for any assistence!
|
|
#2
|
|||
|
|||
|
File name proably needs to be .shtml
|
|
#3
|
|||
|
|||
|
Thanks PSiPro, I tried your suggestions, but no luck
I have a little counter I'm using to test this. I tried the shtml version so it looks like this (changed the file name on the server and cmoded it 755) <!--#include virtual= "/cgi-bin/counter.shtml" --> instead of this <!--#include virtual= "/cgi-bin/counter.pl" --> and no change, nothing displays. I also have a last modified command Last Modified <!--#echo var="LAST_MODIFIED"--> That also doesn't seem to work? It's as if the server isn't reading the commands? Is that possible? |
|
#4
|
|||
|
|||
|
Problem resolved. For reference here is what fixed it (from support):
The reason why the site wasn't working is because you had the file as .html not .shtml. I have added a Handler in your .htaccess file to resolve the issue. Thanks! |
|
#5
|
||||
|
||||
|
What PsiPro said earlier meant that the file where you have those commands should have been .shtml
__________________
quietFinn - netFinn Finland "Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss |
|
#6
|
|||
|
|||
|
Quote:
You should actaully take that line out of htaccess as it will slow down the transmission of your regular html files. If you have HTML files which do not contain SSI, the server will attempt to look at them anyway. If you just have the SSI on one or two pages, rename them from FILE_NAME.html to FILE_NAME.shtml. Its a very small increase in speed, but an increase nonetheless. |
|
#7
|
|||
|
|||
|
Perhaps it is my fuzzyness on the question. The page is in a directory called links and the actual file is index.html, within the index.html file is the command
<!--#include virtual="/cgi-bin/addalink/main.cgi" --> So you are not saying change the command to <!--#include virtual="/cgi-bin/addalink/main.shtml" --> you are saying change the index.html that contains the <!--#include virtual="/cgi-bin/addalink/main.cgi" --> to index.shtml, is that correct? |
|
#8
|
|||
|
|||
|
Yep yep. And ending in .shtml will tell the server to look for server side includes in this page.
|
|
#9
|
|||
|
|||
|
Ahh PERFECT! Tried it and it worked without the .htaccess code. Thanks PSIPro!
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
All times are GMT -5. The time now is 08:10 AM.









