Use Server Side Includes To Ease Your WorkloadGet Web Design Tips and Tricks on mps-web-design.com. Use Server Side Includes To Ease Your Workload topic will increase your understanding on Web Design Tips and Tricks. We at mps-web-design.com only provide news, articles, information in Web Design Tips and Tricks. Web Design Tips and Tricks at mps-web-design.com provides the most up to date news and articles. If you have questions please do not hesitate to contact us.
One way to do this is with Server Side Includes (SSI). SSI’s are an easy way to add or update content to one or more web pages on a site. One way I use SSI’s is for the copyright on my pages. By changing the year in one file, it changes the year on all of my pages. I also use SSI’s for the links on my pages. If I decide to add or remove a link, or rearrange them, I simply make the changes in one file and my entire site is automatically updated. As I said before, make it easy. Why should I go to each of the 80 plus pages on my site to change something when I can do the same thing with one little file? Another great thing about SSI’s is that you can’t see them on a web page. If you, or anyone, view the contents of your page, the SSI won’t show. Instead, you will only see the HTML put there by the SSI. Before you try to use SSI’s you need to check with your web host to see if the server is set up for them. Most servers are. If they say they are, then you need to do a little test. Create a web page with the following HTML. Save this as an HTML file and upload it to your server. Now try to open the page with your browser. If you see the current weekday, like Monday, Tuesday, etc. then you can start using SSI’s. If you don’t see anything, rename the file extension. Instead of using HTML use SHTML. Some servers require the “S” and others don’t. Another thing you need to know is that you shouldn’t use the SHTML extension on your Home or Index page. Spiders don’t like it and won't be able to Index the page on their search engines. Now that you know your server will let you use SSI’s, let’s start saving time. The first thing you need to do is create a text (.TXT) file that contains the information you want to include. This can be graphics, text, links or anything else you want to include. You will want to include the HTML that you would normally put on a web page. Think of this text file as something that will be pasted into your web page, since this is exactly what will happen. If you wanted to include a copyright on each page, then put this into the text file Copyright © 2004 Jeff Colburn and save it as a text file. Let’s call it copyright.txt. Now, create the web page where you want the copyright to go. In the place where you want to see the copyright, put then upload this web page to your server. When you go to this page with your browser, you will see the copyright information where you want it. If the copyright doesn’t show up, recheck the above command. Be sure the spacing and capitalization are correct. I usually put these text files in my main folder with all the SHTML files. Another option is to put all of the SSI text files into their own folder. If you do that, then the command will look like this Replace the word “directory” with the name of the directory where your text files are located. Now you can use SSI’s to include anything you want on various pages. And feel free to include as many SSI’s on a web page as you want. I use up to five on some of my pages. The real secret is to carefully plan out your site and its future growth. This way you can include SSI’s as you create your site, instead of adding them to your site after it’s completed. So have fun with SSI’s, be creative and let your server do as much of your work as possible.
|
More Articles:1. Four Types of Ads To Avoid If You Want To Keep Your Visitors Happy! It seems like most web sites are displaying ads on their web pages these days. Some ads are not too noticeable while others are so annoying that they push visitors away and possibly make them leave the site. Pushing away visitors or potential customers is never a webmaster's goal so it¡¯s best to place ads in such a way as to avoid these kinds of problems. Pop-up and Pop-under Ads Some of the most annoying ads come in the form of a pop-up ad. This type of ad will open up a new browser wi… 2. Free Online Logo Maker A logo is a graphics or design that is used to identify a service, product or company from other entities. A website logo is essential to differentiate a website from other sites. To get a website logo you can design your own logo with any logo design software, hire a professional designer, or get free / paid logo from online services.•Logo can include company name, sign and slogan.•Logo must be specific to the site.•Logo is a best marketing tool.Free online Logo maker tool http://www.logomaker.… 3. Benefits of Web Site Templates Okay, you are ready to join the masses and put up a web site. You've put a lot of thought into the design and are ready to go. Perhaps you should give more thought to using a web site template. Web Site Templates For many people, it makes more sense to use a pre-designed web template instead of creating a site from scratch. Using a pre-designed site template allows you to get a professional design at a fraction of the price a custom design would cost. A good template is automated or has HTML tag… 4. Simple Steps to Finding a Web Designer Simple Steps to Finding a Web DesignerStep 1. Planning While searching for the right web designer it is important to have a clear idea of what the role your new website will fill. Will it provide information to your customers? Will it serve the needs of your employees? Or will it include an online shopping ability for selling purposes? As a web designer myself, the key information I would want to know from you would be:- The role of your new website. - The intended market or audience of your Web… |
||||