Welcome to WebmasterWorld Guest from 23.22.206.103

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

"<#-- include" doesnt work

     
11:19 am on Jun 19, 2010 (gmt 0)

New User

5+ Year Member

joined:June 19, 2010
posts:4
votes: 0


hi,

I placed both

<!--#include virtual="sample.html" -->

&

<!--#include FILE="sample.html" -->

in my html file, SSI is shown enabled in Control Panel, and I dont see any content added

should I update any file?
11:31 am on June 19, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


File extension needs to be
.[b]s[/b]html
I believe.

Look also at PHP includes. They are a lot more versatile.
11:36 am on June 19, 2010 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 19, 2004
posts:51
votes: 0


Apache has to be set up to allow includes. Check that first.
11:37 am on June 19, 2010 (gmt 0)

New User

5+ Year Member

joined:June 19, 2010
posts:4
votes: 0


thanks!

I am going to build up a online shop and selling some products,

If i changed all my html files to php files, i would like to hide the filename of the name, e.g.

from

www.mysite.com/mp3/list1.php


to

www.mysite.com/mp3/


how can i do?

thanks:)
12:51 pm on June 19, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


A Rewrite can do that. There are more than ten thousand previous examples of related code right here in this forum, as it is a question that is asked several times each week.

I'd suggest that the published URL not have a trailing slash so that the pattern matching can look for URL requests without trailing slash and without extension and know that they are extensionless URLs for pages.
3:10 pm on June 20, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


Extensionless URLs [webmasterworld.com]

Jim