Philosopher

msg:4265921 | 10:50 pm on Feb 11, 2011 (gmt 0) |
I would NOT recommend that. Two main issues.. 1) The search engines don't do javascript well. G is better about it than Bing, but I'm still not convinced that links found by G within javascript carry the same weight as regular hypertext links. For any search engine that doesn't handle javascript, or doesn't handle it well, you will effectively kill your site as they won't be able to find the links to the internal pages. 2) Any user that has JS off will not be able to use your site at all. Why not achieve the same thing via a server-side include. You should have that ability regardless of the platform the site is based on.
|
Rebby_mac

msg:4265928 | 11:13 pm on Feb 11, 2011 (gmt 0) |
The problem with that is that we have years worth of backlinks to our site. If I changed it to .shtml, all of those links would break. They aren't the kind of links we want to blow off. Is there a way to use ssi without filenames ending with .shtml?
|
Rebby_mac

msg:4265929 | 11:14 pm on Feb 11, 2011 (gmt 0) |
To address the search engine thing, I generate a sitemap.xml every time I add pages. Would that be enough?
|
g1smd

msg:4265937 | 11:31 pm on Feb 11, 2011 (gmt 0) |
If you have PHP on the server then use PHP includes. You do NOT need to change the filenames or extensions, but you will need to tell the server to interpret .html (or whatever you use) files as able to contain PHP instructions. Do not use JS. It is the wrong solution.
|
Philosopher

msg:4265939 | 11:36 pm on Feb 11, 2011 (gmt 0) |
As g1smd said, it sounds like you are on an apache server. if that is correct, then it's a fairly simple matter of telling the server to either parse the files for cgi commands or as g1smd recommended, parse the files as php and use a php include. The sitemap is NOT enough. Just find a way to use a server-side include. The javascript solution will absolutely kill your site.
|
Fotiman

msg:4265944 | 11:43 pm on Feb 11, 2011 (gmt 0) |
Welcome to WebmasterWorld. You could configure your server to process .htm or .html files as server side includes as well. But I would recommend against using JavaScript for this purpose. JavaScript is best used to progressively "enhance" a page (vs. relying on it as a requirement).
|
Rebby_mac

msg:4265971 | 2:08 am on Feb 12, 2011 (gmt 0) |
Thank you! It sounds like Javascript No and PHP Yes. Yes, Apache on Linux.
|
tangor

msg:4266008 | 5:13 am on Feb 12, 2011 (gmt 0) |
| Is there a way to use ssi without filenames ending with .shtml? |
| top of .htaccess AddType text/html .shtml AddHandler server-parsed .htm AddHandler server-parsed .html AddHandler server-parsed .shtml
|
Rebby_mac

msg:4266099 | 1:49 pm on Feb 12, 2011 (gmt 0) |
That worked for me. Thank you all. It does just what I need. And then I found the instructions at my Web host. :-) === Created the .htaccess file in a folder with Transmit, opened the file and added the lines: AddHandler server-parsed .htm AddHandler server-parsed .html
|
g1smd

msg:4266122 | 3:04 pm on Feb 12, 2011 (gmt 0) |
While SSI allows simple includes, using PHP will allow you to do a lot more.
|
Rebby_mac

msg:4266167 | 5:23 pm on Feb 12, 2011 (gmt 0) |
g1smd: I'll see what I can learn at [tuxradar.com...] Maybe you can teach an old dog new tricks.
|
|