Welcome to WebmasterWorld Guest from 50.16.24.12

Forum Moderators: Ocean10000 & incrediBILL & phranque

"<#-- include" doesnt work

   
11:19 am on Jun 19, 2010 (gmt 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 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.
11:36 am on Jun 19, 2010 (gmt 0)

10+ Year Member



Apache has to be set up to allow includes. Check that first.
11:37 am on Jun 19, 2010 (gmt 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 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.
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

My Threads

Hot Threads This Week

Hot Threads This Month

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved