/    Sign up×
Community /Pin to ProfileBookmark

SSI in subfolders?

Hello,

Doesen’t SSI works in subfolders?

Take a look at this:
[url]http://www.freemp3world.com/artist/0-9/index.shtml[/url]

I use this codes:
<!–#include file=”header.shtml”–>

Cheers,
-Stene

to post a comment
HTML

7 Comments(s)

Copy linkTweet thisAlerts:
@ray326May 19.2005 — Not Found

The requested URL /artist/0-9/header.shtml was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/1.3.33 Server at www.freemp3world.com Port 80[/QUOTE]

Looks like that page is not in the same dir as the page including it.
Copy linkTweet thisAlerts:
@jmaresca2005May 19.2005 — use this ../ in you path that calls the include
Copy linkTweet thisAlerts:
@steneauthorMay 19.2005 — Yes... The include files are in the root, so shall I use this?

<!--#include file="../header.shtml"-->
Copy linkTweet thisAlerts:
@jmaresca2005May 19.2005 — create folder in ur root called includes. place the includes in that folder and call it like this ../includes/header.shtml
Copy linkTweet thisAlerts:
@ray326May 19.2005 — Yes... The include files are in the root, so shall I use this?

<!--#include file="../header.shtml"-->[/QUOTE]

Since it's in the root you can use this on any page, regardless of where that page is located.

<!--#include virtual="/header.shtml" -->
Copy linkTweet thisAlerts:
@steneauthorMay 19.2005 — Something is wrong, doesen't work now either, and now I made a new folder in the root called "includes" and put all my includes there (header.shtml, footer.shtml, nav.shtml and top.shtml)

I used this code: <!--#include file="../includes/header.shtml"-->

Didn't work on http://www.freemp3world.com or http://www.freemp3world.com/artist/0-9/index.shtml
Copy linkTweet thisAlerts:
@ray326May 20.2005 — That because it's wrong. Did you read my reply?
×

Success!

Help @stene spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...