shtml virtual include Horse

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
I just moved one of my sites from one server to another, they are both cpanel server and, apart from the passwords, they are set up the same - only with different hosting companies - but it doesn't work on the one I moved to.

The problem I think is my index.shtml which just has this in it:

<!--#include virtual="directory/Horse" -->

which works fine on one server but not on the other:

[an error occurred while processing this directive]

Is it possible that one of the servers doesn't like files being called just Horse with no extension such as Horse.php or something like that?
 

Overdriven

Dumpster Fire of The South
Joined
Jan 23, 2004
Messages
12,777
Is it possible that one of the servers doesn't like files being called just Horse with no extension such as Horse.php or something like that?

First thing that came to mind with me. Try giving Horse the extension and see if it helps.
 

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
That does work, but it messes up the site's URLs because the Horse file becomes part of the URLs, so if it's Horse.php the address look like this:

/directory/Horse.php/Associations/Associations.php for instance.
 

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
I have this in my .htacess file for that folder:

<files Horse>
ForceType application/x-httpd-php
</files>

which should make it work without the .php, I think my host may not be allowing that command or something?
 

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
In case anyone reads this in the spooky future, I got this to work in the end, the new host runs php as cgi of something, I just had to put this in the .htaccess file:

SetHandler application/x-httpd-php
 

Users who are viewing this thread

Top Bottom