Forum Moderators: open

Message Too Old, No Replies

shtml and Google

Will it harm my results

         

JVB_Mktg

8:11 am on Apr 24, 2003 (gmt 0)

10+ Year Member



My site has over 10k pages and I need something to avoid having to do a find and replace and upload every file every time I need to update my nav bar. (several hundred megs)

I was told to use SSI and after reading a coupl eof tutorials, I got the test pages to work, now, before I take the plunge and do make the change I'd like to know if this can be harmful in Google. I don't see many .shtml in SERPS, although maybe it's just that it's not as common.

Anyone have a high ranking shtml site in goole?

Javi

Emma McCreary

9:13 am on Apr 24, 2003 (gmt 0)

10+ Year Member



I use .shtml on one of my sites and don't seem to suffer any. If I were you though, I'd use PHP...you can do the same include stuff, and a whole lot more down the road if you want to, and you won't have to worry about changing the extensions of all the files.

WibbleWobble

9:22 am on Apr 24, 2003 (gmt 0)

10+ Year Member



You could setup your webserver to parse .html or .htm extensions for includes, too; if you can. That way google would never know (nor infact, care) that they were being called server side.

10,000 pages of hand-generated code? eep.

If I were you though, I'd use PHP...you can do the same include stuff, and a whole lot more down the road if you want to

That does require learning PHP though, which simple html includes don't ;)

Emma McCreary

9:32 am on Apr 24, 2003 (gmt 0)

10+ Year Member



True WibbleWobble, but the code for an include is just as simple in PHP as SSI:

<? virtual ('included_file.html');?>

and then if one wanted to learn PHP later, one could do.

and with 10,000 pages, I can't imagine not wanting to implement some kind of dynamic solution at some point. =)

wackmaster

1:06 pm on Apr 24, 2003 (gmt 0)



<You could setup your webserver to parse .html or .htm extensions for includes, too; if you can.>

WibbleWobble, could you expand a bit on how to do this? We have an shtml site but I'd rather use just .html or .htm. Afraid I'm not skilled in PHP...yet.

Thanks for any help!

Gonzalez

1:13 pm on Apr 24, 2003 (gmt 0)

10+ Year Member



Hi,

Add this to your .htaccess:

================================
AddHandler server-parsed .htm
AddHandler server-parsed .html
================================

If you have only .htm or .html files one line is enough.

See you

Gonzalez

1:41 pm on Apr 24, 2003 (gmt 0)

10+ Year Member



By the way, here is what you have to do on the pages:

====================================================
<!--#include file="included_page.htm" -->
====================================================

If you put "included_page.htm" on a diretory other than the one where you have the file with this line, and if the "included_page.htm" has links beware of relative paths.

For example: Your site has the following strucure:

=====================================================
/somedir/index.htm
/somedir/includes/included_page.htm
/somedir/something/mypage.htm
=====================================================

If you have included the "included_page.htm" on "index.htm" and you have a link on "included_page.htm"
to "mypage.htm" you have to setup the link as:

======================================================
<a href=something/mypage.htm>
======================================================

and not

======================================================
<a href=../something/mypage.htm>
======================================================

because the path is relative to the file that includes ("index.htm") and not to the included.

This is a simple sample. Check the web for other commands (if-then-else, for example).

Hope this helps you

wackmaster

2:03 pm on Apr 24, 2003 (gmt 0)



Gonzalez,

What a wonderful reply! Thank you so much!

wackmaster

JVB_Mktg

8:42 pm on Apr 24, 2003 (gmt 0)

10+ Year Member



Thanks all, very informative, I do have one last?¿ question... :) How do I add that to my htaccess :confused:

Javi

<edit> Nevermind.. I figuered it out on my own :)</edit>

futureX

11:28 pm on Apr 24, 2003 (gmt 0)

10+ Year Member



i've just started using .php for includes and stuff... it looks nicer than .shtml and it is kinda easier :)