Welcome to WebmasterWorld Guest from 50.17.79.100

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

"<#-- include" doesnt work

     

hihidavid

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

5+ Year Member



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?

g1smd

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

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



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

Look also at PHP includes. They are a lot more versatile.

spander

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

10+ Year Member



Apache has to be set up to allow includes. Check that first.

hihidavid

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

5+ Year Member



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:)

g1smd

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

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



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.

jdMorgan

3:10 pm on Jun 20, 2010 (gmt 0)

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



Extensionless URLs [webmasterworld.com]

Jim
 

Featured Threads

Hot Threads This Week

Hot Threads This Month