|
Haven't registered yet? Do it here now!
|
lordkay333
Joined: 10 Dec 2007 Posts: 15
|
|
|
|
|
|
|
Posted: Fri Jan 18, 2008 1:21 pm Post subject: Include Links via SSI |
|
|
|
|
|
|
|
|
|
|
Hi,
I have a question about including the link-files in my index.shtml. Is there a way because I don't want to switch my sites to *.php
regards
Christian |
|
|
|
|
|
|
|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Fri Jan 18, 2008 4:13 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
hi there, yeah there is a way to do that. just use the SSI include code.
try with:
Code: | <!--#include file="included.html" --> |
or
Code: | <!--#include virtual="/directory/included.html" --> |
ofcourse put the proper template url you see from the php linking codes. _________________ Thanks,
Kaktusan
|
|
|
|
|
|
|
|
lordkay333
Joined: 10 Dec 2007 Posts: 15
|
|
|
|
|
|
|
Posted: Fri Jan 18, 2008 8:52 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
Hi and thank you for your fast reply!
I used Code: | <!--#include virtual="/directory/included.html" --> |
in this file =>
http://hottranny-blog.com/test.shtml
I test two different codes =>
1. Code: | <!--#include virtual="http://hottranny-blog.com/lo/site_templates/site_5_1.php" --> |
2. Code: | <!--#include virtual="/lo/site_templates/site_5_1.php" --> |
unfortunately only the second code is working. So I can only include the
file if it is located on the domain I installed lo.
The first code response an error message. Maybe you know how I can include the links on my other domains...
regards,
Christian |
|
|
|
|
|
|
|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Sat Jan 19, 2008 12:07 am Post subject: |
|
|
|
|
|
|
|
|
|
|
oh yes, SSI has limitation to allow inclusions only on same domain. I remember now why i didn't put the SSI linking method in the default codes displayed in the script, but only the php ones.. _________________ Thanks,
Kaktusan
|
|
|
|
|
|
|
|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Tue Jan 22, 2008 1:30 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
hey there, i just remembered a trick..
at your domains make a php file, like trades.php and in it put the php linking code. And then in your .shtml files just include the trades.php, that way it is local to the domain and will work.
Did you catch the idea? _________________ Thanks,
Kaktusan
|
|
|
|
|
|
|
|
lordkay333
Joined: 10 Dec 2007 Posts: 15
|
|
|
|
|
|
|
Posted: Tue Jan 22, 2008 11:41 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
Hi,
thank you for your hint! I will test it tomorrow and tell you if it works.
Christian |
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|
|
|
|
| |