homepage Welcome to WebmasterWorld Guest from 54.167.138.53
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
"<#-- include" doesnt work
hihidavid



 
Msg#: 4155210 posted 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?

 

g1smd

WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4155210 posted 11:31 am on Jun 19, 2010 (gmt 0)

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

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

spander

10+ Year Member



 
Msg#: 4155210 posted 11:36 am on Jun 19, 2010 (gmt 0)

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

hihidavid



 
Msg#: 4155210 posted 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:)

g1smd

WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4155210 posted 12:51 pm on Jun 19, 2010 (gmt 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.

jdMorgan

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



 
Msg#: 4155210 posted 3:10 pm on Jun 20, 2010 (gmt 0)

Extensionless URLs [webmasterworld.com]

Jim

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

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