Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
how did you make the site?
we must know this, because from the internet i can only see static html pages, but it is very well possible that they were created server side, most likely with php.
To answer the question as to how the site was made, look at the bottom of each page on the site. I used Bluegriffon to do the editing on the provided packaged template.
I attempted using the includes command from SSI, but failed.
To answer the question as to how the site was made, look at the bottom of each page on the site. I used Bluegriffon to do the editing on the provided packaged template.
so it's just a bunch of individual html files.
first you have to remove the footer from all of them, and replace it with something else.
i assume you attempted something like that here:
Quote:
I attempted using the includes command from SSI, but failed.
that did nothing and failed to even produce the bottom box for the footer.
well, first of all, if the file is called included.shtml, then you have to also include
Code:
<!--#include file="included.shtml" -->
then, maybe also all the other original html files (index.html, contact.html and so on) have to be changed to end in .shtml?
i know nothing about SSI. i would use php.
wikipedia says that apache supports it, but maybe you have to switch it on in its config?
are you running an apache server?
Probably the footer can be made as a separate HTML file and then included in each page. W3Schools is an excellent website for everything web-related, and in this part they advocate a small JavaScript for the inclusion.
Be sure to read the official Apache documentation for Server-Side Includes (SSI). virtual= is used with a path relative to the URL
Code:
<!--#include virtual="/included.html" -->
And file= is used relative to the filesystem
Code:
<!--#include virtual="./included.html" -->
But they will only work if you have turned on "Options +Includes", or a variant, in the right Directory or Location directive and put "AddType text/html .shtml" in the right part of the configuration file. I'm not sure how CentOS/Fedora handles that, so it may be automatic, there may be a script, or you may have to add it by hand. It might be possible to do this in .htaccess if you are not sysadmin but it is not guaranteed that the prerequisites are there for you.
SSI is the way to go, IMHO, over JS or PHP. It is much less maintenance and, unlike JS, reaches everybody.
Last edited by Turbocapitalist; 04-22-2016 at 12:58 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.