Forum Moderators: open

Message Too Old, No Replies

include doesn't work with absolute path

html include

         

JPcinemamaster

2:07 am on Aug 26, 2009 (gmt 0)

10+ Year Member



Hello,
I added an include for my pages:
<!--#include FILE="my_page.shtml" -->
it works fine but when I moved it to another folder, it stopped working even though I changed the path:
<!--#include FILE="/new_folder/my_page.shtml" -->
I even tried the absolute path:

<!--#include FILE="http://www.example.com/new_folder/my_page.shtml" -->

am I doing something wrong?

Thank you guys

incrediBILL

2:52 am on Aug 26, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It's a server side include, the absolute path is meaningless there.

The FILE parameter you're using is relative to the document path so try VIRTUAL which is relative to the document root instead:

Try this:

<!--#include virtual="/new_folder/my_page.shtml" -->