Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,835
    Thanks
    21
    Thanked 157 Times in 148 Posts

    Including an .html footer file...

    I was wondering if there was a javascript fix for the following problem:

    Is there any way to include an .html footer file inside of a larger .html file? I know it can be done if the main file is .php or .shtml, but what about .html? The reason I ask is because I've created a rather large site with mostly .html files, and now I'd like to add an identical footer to all of these files. Oops!! Anyway, I'm not looking forward to renaming all my files and redoing all of my links...Can anyone help?

    Thanks,

    R.J.

  • #2
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    just get an application which can do batch filename conversions. in fact, i think you can do that from the command line.

    btw: there is no way, save editing the Apache config to allow it to serve .HTML files with SSIs - but i doubt you'll have access to that.
    *keep it simple (TM)

  • #3
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,835
    Thanks
    21
    Thanked 157 Times in 148 Posts
    Well, actually my main concern is that these files are already indexed with the search engines...changing the file names would screw up my search engine placement....I forgot to mention this before

  • #4
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by chump2877
    Well, actually my main concern is that these files are already indexed with the search engines...changing the file names would screw up my search engine placement....I forgot to mention this before
    if the filenames are index.html, then that wouldn't be a problem because you should only be registering the directory structure anyway. however, if you haven't done this then, yes, that could be a problem. thus changing index.html to index.shtml wouldn't be a problem.
    *keep it simple (TM)

  • #5
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,835
    Thanks
    21
    Thanked 157 Times in 148 Posts
    Actually, all I registered was the domain name, without the index.html appendage...am I still safe to change file names given that?

  • #6
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by chump2877
    Actually, all I registered was the domain name, without the index.html appendage...am I still safe to change file names given that?
    the search engine just spiders what it finds. at the end of the day, it sees the the rendered file and thus the extension is irrelevant, so index.html is the same as index.shtml is the same as index.php. you should be quite safe.
    *keep it simple (TM)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •