Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Shared Hosting Support

Notices

Reply
 
Thread Tools
  #1  
Old 02-01-2007, 02:34 PM
haneyhack haneyhack is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 38
Default Include Virtual

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!
Reply With Quote
  #2  
Old 02-01-2007, 04:38 PM
PsiPro PsiPro is offline
King Croc
 
Join Date: Nov 2005
Posts: 812
Default Re: Include Virtual

File name proably needs to be .shtml
Reply With Quote
  #3  
Old 02-01-2007, 05:18 PM
haneyhack haneyhack is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 38
Default Re: Include Virtual

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?
Reply With Quote
  #4  
Old 02-02-2007, 10:48 AM
haneyhack haneyhack is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 38
Default Re: Include Virtual

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!
Reply With Quote
  #5  
Old 02-02-2007, 11:03 AM
quietFinn's Avatar
quietFinn quietFinn is online now
Veteran Croc
 
Join Date: Feb 2005
Posts: 3,557
Default Re: Include Virtual

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
Reply With Quote
  #6  
Old 02-02-2007, 11:42 AM
PsiPro PsiPro is offline
King Croc
 
Join Date: Nov 2005
Posts: 812
Default Re: Include Virtual

Quote:
Originally Posted by quietFinn View Post
What PsiPro said earlier meant that the file where you have those commands should have been .shtml
Opps, my bad, clarity issue on my site.

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.
Reply With Quote
  #7  
Old 02-02-2007, 11:48 AM
haneyhack haneyhack is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 38
Default Re: Include Virtual

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?
Reply With Quote
  #8  
Old 02-02-2007, 11:59 AM
PsiPro PsiPro is offline
King Croc
 
Join Date: Nov 2005
Posts: 812
Default Re: Include Virtual

Yep yep. And ending in .shtml will tell the server to look for server side includes in this page.
Reply With Quote
  #9  
Old 02-02-2007, 12:13 PM
haneyhack haneyhack is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 38
Default Re: Include Virtual

Ahh PERFECT! Tried it and it worked without the .htaccess code. Thanks PSIPro!
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 08:10 AM.