• Domain Name Extensions + SEO

    Date: 2011.02.22 | Category: Search Engine Optimization, WebDesign | Response: 0

    With a slew of new TLD (Top Level Domain) extensions being launched in the first quarter of 2004 in addition to the hundreds already available how many of us actually take time to consider that when we register a .com, .net or, .org domain how will these sites help or hinder us with our search engine work? This is what we will take a closer look at in this article.

    Domain Name Extensions – What Are They?

    First of all, before we look at how the extensions of our domain names can assist us in running our search engine optimization methods we need to understand what the TLD’s themselves are actually for. Domain name extensions are essentially a way to recognize specific locales via the usage of domain names so for example, the domain name extension .com were primarily set up as commercial domain names however, with the commercial use of this extension it has also become, without a doubt the most popular extension for individuals or companies registering new domain names. In addition to the TLD extensions there are also a selection of domains extensions ranging from industry specific extensions such as .aero to country specific extensions such as .co.uk.

    Domain Name Extensions And Search Engines.

    Now we understand what the domain name extensions were put in place for we can now start to look at how they may benefit us in terms of SEO (search engine optimization) for example, head across to http://www.google.com and do a search on something such as ‘penis pills’ you can see from the results shown (01/01/04) that the first 10 results are evenly spread across a range of domain name extensions ranging from .com to .net and also some smaller .go.ro domain extensions. This would lead us to assume that at the current time, Google specifically is not paying to much attention to the extensions of the domain names we are using however, given the recent updates of the last month or two across Google this has also cleaned up a lot of the results that were present 2 months prior to this search in which the .biz extension was highly populated in the rankings.

    Domain Name Extension Abuse + Spam.

    With this slew of new domain name extensions being launched what seems like yearly this also opens up a whole lot of new problems for the webmaster primarily that of the domain name spam. Because domain names can be registered for as little as $5 per year many webmasters have taken to purchasing them, using them to spam the search engines and then, once the search engines discover the spam and remove the offending domains, the webmaster then moves on to new domains in effect, making domain names a disposable commodity to them. Whilst this method will certainly garner traffic for the search engine spammer it will also in turn mean that the traffic that honest webmasters receive from the search engines will be lower.

    Domain Name Extensions And Optimization.

    Hopefully this brief article has given you a little insight into how domain name extensions can both benefit and also detriment your business, by choosing your domain name extensions carefully and, making sure you do your best not to spam the search engines you can make some serious income from pure search engine traffic however, once you start to buy domain names with lesser known extensions to purely spam the search engines you are not only wasting your own money but, are also potentially wasting other hard working webmasters money too.

    Article written by Lee

  • Blogging For Traffic – An Alternate View

    Date: 2011.02.21 | Category: Blogging | Response: 0

    Just recently the adult industry seems to have gone ‘blog’ crazy in fact, it is almost a daily occurrence that webmasters mention a blog of some description on several message forums however, when it comes down to it, does blogging really matter at all? This is what we will take a look at in this article.

    What Is A Weblog Or Blog?

    A Weblog, or ‘Blog’ for short, is a kind of website or a part of a website. It is usually, but not always, run by a single person and they publish bits of writing on the Weblog. These bits of writing, called ‘entries’ or ‘posts,’ generally appear on the front page of the weblog in reverse chronological order, that is, with the newest entry at the top of the page, with older entries progressively further down.

    So How Can Blogging Help Me?

    Quite honestly, I don’t think it can. Think about it for a moment, you spend an hour or so a day writing a page in your online journal only for it to be erased or archived at a later date, doesn’t that seem strange to you? Instead of blogging why don’t you actually do something constructive such as making a .html page out of the text you were going to use for your blog, keyword it up and upload that directly onto your server? After all this in itself will benefit you in the long term much more than a quick page that will eventually disappear from existence. Of course there will always be those people who do successfully use blogs as a part of their marketing strategy and, kudos to them however, looking at the bigger picture, it makes much more sense to have a fresh HTML page which will remain indefinitely on your site that you can keyword and SEO for the search engines rather than something that is going to become relatively short lived.

    Blogging – Overview.

    To be perfectly honest with you, all of this talk of creating a blog to get additional traffic is, in itself just ‘hype’ unless you have a source of blog owners to link back to your blog or, an hour or so to kill each day wasting your time writing your blog your time really would be much better served coding HTML pages. After all, HTML pages have worked for the last 30 years, why all of a sudden have webmasters stopped using them?

    Article written by Lee.

  • Straight From The Horses Mouth – Get Googlized

    Date: 2011.02.24 | Category: Search Engine Optimization | Response: 0

    Many webmasters wonder how to ensure their sites will be included in Google’s index of web sites. Although Google crawls more than a billion pages, it’s inevitable some sites will be missed. When Google does miss a site, it’s frequently for one of these reasons:

    * The site is not well connected through multiple links to others on the web.
    * The site launched after Google’s last crawl was completed.
    * The design of the site makes it difficult for Google to effectively crawl its content (excessive frames, tables, etc).

    Google’s intent is to represent the content of the Internet fairly and accurately. To help make that goal a reality, we offer this guide to building a “crawler-friendly” site. There are no guarantees a site will be found by our crawler, but following these guidelines should increase the probability that your site will show up in Google search results.

    Do…
    Provide high-quality content on your page – especially your home page.
    If you follow only one tip from this page, this should be it. Our crawler indexes web pages by analyzing the content of the pages themselves. Google will index your site better if your pages contain useful information. Plus, your site has a better chance of becoming a favorite among web surfers and being linked to by others if the information it contains is relevant and useful.

    Submit your site to the appropriate category in a web directory.
    Listing your site in the Open Directory Project http://www.dmoz.org/ or Yahoo! http://www.yahoo.com/ increases the likelihood it will be seen by robot crawlers and web surfers.

    Pay attention to HTML conventions.

    Make sure that your <TITLE> and <ALT> tags are accurate and descriptive. Also, check your <A HREF> tags for errors since broken or improperly formatted links can prevent Google from indexing your page.

    Make use of the robots.txt file on your web server.
    This file tells crawlers which directories can or cannot be crawled. Make sure it’s current for your site so that you don’t accidentally block our crawler. Visit: http://www.robotstxt.org/wc/faq.html for a FAQ answering questions regarding robots and how to control them once they visit your site.

    Ensure that your site is accessible through HTML hyperlinks.
    Generally, your site is crawlable if the pages are connected to each other with ordinary HTML links. If certain areas are not linked, you may be excluding older browsers, differently-abled users, and Google. Google can crawl content from a database or other dynamically generated content as long as it can be found by following links. If you have many unlinked pages, you may want to create a jump page from which the crawler can find all of your pages.

    Build your site with a logical link structure.
    A hierarchical link structure is not only beneficial to you, but also to Google. More of your site can be crawled if it is laid out in with a clear architecture.

    Don’t…
    Fill your page with lists of keywords, attempt to “cloak” pages, or put up “crawler only” pages.
    If your site contains pages, links or text that you do not intend visitors to see, Google considers them deceptive and may ignore your site.

    Feel obligated to purchase a search optimization service.
    Some companies “guarantee” your site a place near the top of a results page. While legitimate consulting firms can improve your site’s flow and content, others employ deceptive tactics to try and fool search engines. Be careful – if your domain is affiliated with one of these services, it could be permanently banned from our index, we have found search engine optimization software like Web Position Gold works best but, again use it in moderation.

    Use images to display important names, content or links.
    Our crawler does not recognize text contained in graphics.
    Use ALT tags if the main content and key words on your page cannot be formatted in regular HTML.

    Provide multiple copies of a page under different URLs
    Many sites offer text-only or printer-friendly versions of pages that contain the same content as the graphic-enriched version of the page. While Google crawls these pages, duplicates are removed from our index. In order to ensure that we have the desired version of your page, place the other versions in separate directories and use the robots.txt file to block our crawler.

    Article written by a Google employee

  • Viral Marketing – Catching The Marketing Bug

    Date: 2011.02.21 | Category: Viral Marketing | Response: 0

    The term viral marketing is offensive. Call yourself a viral marketer and, people will often take two steps back. I know I would do. It is a sinister thing, the simple virus is fraught with doom, not quite dead yet not fully alive, it exists in that nether region somewhere between horror movies and disaster films.

    That said however, you have to admire the skills of the viral marketer. They have a way of winning by sheer weight of numbers alone. They piggy back on everyone else and use their resources to grow their own. In the right circumstances the viral marketer can grow exponentially. A virus doesn’t have to mate, it just replicates itself again and, again and, again increasing its power, doubling its effect with each replication.

    I
    I I
    I I I I
    I I I I I I
    I I I I I I I I

    In a few short generations, a viral marketing population can boom as seen in the diagram above.

    Viral marketing defined.

    What does a virus have to do with viral marketing? Viral marketing describes any strategy that encourages individuals to pass on a marketing message to others, creating the potential for mass growth in the messages exposure and influence.

    Like viruses, such strategies take advantage of rapid multiplication to explode the message to hundreds, even thousands in a relatively short period of time.

    Before the advent of the internet viral marketing was often referred to as ‘word of mouth’. However, for better or for worse, the term viral marketing has infected.

    One classic example of this marketing technique is Hotmail.com one of the first free web based email services. Their strategy was simple.

    Give away free email addresses and services.
    Attach a simple tag at the bottom of every free message sent out.
    Watch people email their friends, colleagues and family.
    Watch these same friends colleagues and family join up to their service.
    See the message propelled to an ever increasing audience, all for free.

    In closing viral marketing is like watching the tiny ripples of a single pebble dropped pond, one small splash can create ever increasing circles which in turn could create ever increasing revenues.

    Article Written By Lee

  • Designing Your Site With Link Popularity In Mind

    Date: 2011.02.21 | Category: Traffic, WebDesign | Response: 0

    To get good traffic, your website needs to be popular, to be popular, your website needs links, to get links, your website needs to be popular. Annoying isn’t it :)

    Almost everyone agrees that link popularity is critical for your website’s visibility, traffic, and thus successfulness. It is something you need to have. As I pondered the ways of establishing and improving one’s “popularity”, eventually all come back to one central issue, your website must be designed to be popular.

    Link popularity is a basically the measure of links pointing to your website and is meant to be a measure of the best websites. Theoretically those websites that have the most links pointing to them must be important and thus worth the visit. Unfortunately, there are a lot of folks out there that have created programs to “boost” your popularity artificially and all they have done is create Spam and muddy the overall picture. The search engines and directories are keeping a close eye on these programs.

    Design: When getting a request or thinking about making one for a link exchange with a website, look thoroughly over the website first. The website’s theme or topic and general layout is the first thing to look at. Sites with themes or topics that are related to or compliment yours should be your main link partners. You do this to get targeted traffic.

    Just as you evaluated someone’s website, others will be doing the same to yours. Make sure you know what your theme or topic is and that it clearly encompasses the whole website. Stay focused; do not try to cover everything.

    Next, check out the links page or resource area. If they do have one, is it easy to find within the site? Does it seem to be part of the site or just a page off to the side? Are their linking rules available, clear, and easy to follow? Do they accept links from any website or are they choosy? Being part of someone’s well constructed links program, no mater what size, can be a very beneficial thing indeed.

    Again, the same goes for your website. You want to let other webmasters know that you want to exchange links and which type of website you will accept requests from. Make it easy for others to link with you.

    The last set of questions to ask yourself about any website is:

    Is it easy to navigate
    Does it have too many graphics (slow loading)
    Is it pleasant to the eye
    Does the information seem to be organized in a logical fashion

    What has been covered so far deals with what the visitors see; if visiting the website is a pleasant experience then people will stay and look and possibly come back. The final area to cover is what the search engines see.

    The underside (the source code) of the website is just as critical when designing or linking with a website. The search engines are the ones that read this and if it is not done properly then the website can not succeed. Below are a few things you need to consider in your source code and any potential site that has asked to be linked by you.

    Does the website contain frames
    Does it use the headers, titles, meta-tags, and alt tags properly
    Do the keyword location(s) and density seem appropriate and “optimized”

    The latter two issues mentioned above are critical, for they are the backbone to traffic production.

    Content: The information you have is just as important as how you set it up on your website. The more popular websites or the ones with good link popularity are those that have valuable information or resource(s) for its audience after all, they fill a niche! People will visit, stay, return, and recommend a website if it has the content they want or need.

    “Content is king.” A well-designed and organized website might look good but if it does not deliver anything of value, it will not be successful. Whatever subject matter you have on your site, make sure you have something of interest and importance to add to the subject, if you do and you promote it well, you and your site will be successful. In this context, it (content) does not just refer to images, why not add some stories or interesting links to news articles to improve your sites ‘popularity’.

    In addition to information, resources like mailing lists, surveys, polls, classified ads, forums, etc. are all things if used appropriately can add value and fresh content to your website which, in turn will assist you in interacting with your sites visitors.

    In conclusion: Take the time to design and optimize your website properly for the search engines. Make sure you have something of value or importance to add to whatever area your website is in. Provide resources and other tools, which your visitors could use and will make them come back. Be proactive and interact with your visitors. Websites that are dynamic and active are the best ones. All of this might take a little more time to get your website up and running, but it will be worth it.

    For yours or any website to be popular, it needs the links and to get the links, it needs to show the other webmasters that it is worthy of a link. It seems everyone today has a website, but not everyone has put together a website that adds value to the Internet community. Take a critical look at your website and any website you might link to and ask yourself…………….

    Would you bookmark it?

    Article written by Lee

  • Sample Adult Model Release Form

    Date: 2011.02.21 | Category: Forms & Contracts | Response: 0

    For many webmasters the option of being able to shoot their own content is a wholly viable one as such, you should ensure that the models you are using sign a suitable release form. Below we have set together a pretty industry standard model release form which you may duplicate if you so wish. European Webmasters would however, recommend that you get professional legal advice in respect of this matter and that this is no substitution for proper legal advice.

    I, (Please Print) ____________________ (Model), for good and valuable consideration, the receipt of which is acknowledged, give to [INSERT YOUR LEGAL NAME HERE] (Photographer), his legal representatives, successors, and all persons or corporations acting with his permission, unrestricted permission to copyright and/or use, and/or publish photographic portraits or pictures of me, and the negatives, transparencies, prints, or digital information pertaining to them, in still, single, multiple, moving or video format, or in which I may be included in whole or in part, or composite, or distorted in form, or reproductions thereof, in color or otherwise, made through any media in his studio or elsewhere for art, or any other lawful purpose.

    I hereby waive any right that I may have to inspect and approve the finished product or copy that may be used in connection with an image that the Photographer has taken of me, or the use to which it may be applied.

    I further release the Photographer, or others for whom he is acting, from any claims for remuneration associated with any form of damage, foreseen or unforeseen, associated with the proper commercial or artistic use of these images unless it can be shown that said reproduction was maliciously caused, produced and published for the sole purpose of subjecting me to conspicuous ridicule, scandal, reproach, scorn and indignity.

    I acknowledge that the photography session was conducted in a completely proper and highly professional manner, and this release was willingly signed at its termination.

    I certify that I am not a minor under the laws where I live, and am free and able to give such consent.

    Model’s signature:_________________________ day___/month___/year_____ Address:___________________________________ City:______________________________________ State/Province:______________________________ Country:___________________________________
    Zip/Postal Code:_____________________________
    Country area code and home telephone number:(______)____________________________
    Witness (non family member):___________________________________
    Witness (non family member):___________________________________
    This form will be retained with the negatives, transparencies, digital media, and/or contact sheets. day___/month___/year_____ {INSERT YOUR LEGAL NAME HERE}.

    The above model release form is to be used as a mere example form and, when entering into any contractual agreement with any model for photographic / video work you should always seek proper legal advice.

    Article written by Lee.

  • Marketing to European Surfers

    Date: 2011.02.22 | Category: Promotion | Response: 0

    Marketing to European Surfers.

    Today we’ll try to answer couple of questions regarding dialers and how to market them to European traffic.

    How to get traffic to your European market targeted site?

    Pretty much the same way as for all the other sites, lets German market for example (Germany, Austria, Switzerland) use SE’s, German link-lists, TGPs,… feed site with your own traffic, and don’t forget to use exit-consoles.

    Is your site translated into specific language?

    Yes, of course you won’t get far using English template on German/Spanish.. sites… You can always contact Adult Site Translation if you need help with translations.

    What sponsor should you use?

    That is pretty hard to say. Practically since almost every European based sponsor offers dialers so it doesn’t really matter which one you choose. It’s the same with per sign-up sponsors: It depends how good you are in sending traffic to them. And as always try couple of them and see which one works best for you. Most of the sponsors will offer to your surfers to pay by CC, bank account and dialers.

    Me personally, I don’t really advertise dialers. I go for sign-ups because most if not all European sponsors are recurring and it brings more money in the long run. But if a surfer wants to pay the (admittedly) high phone bills – that’s fine with me In fact, sometimes I get more money from a 0190-number (dialer number in Germany starts with 0190) than I’d get if the surfer would sign-up with his CC and would cancel his membership after the first payment.

    Why are dialers so successful in the German/European market?
    Well, I can think of 3 reasons for this:

    1.) 0190-numbers are very common in Germany. Many support-hotlines use them, you can download logos for your cell phone via 0190, you can get health-tips via 0190, fax-numbers, etc… Germans see those numbers everywhere and get used to them. Of course they know that they are expensive but I think they tend to forget this because they are so common.

    2.) Much of my income from dialers is from Swiss and Austrian people. Especially surfers from Switzerland LOVE dialers (Some of them spend hours/nights with dialers and in the end if i get 50% of that for me is not bad, isn’t it? :) I think they love dialers because they hesitate to give out the information on their CC (if they have any) and they can’t/don’t like to transfer their money via bank transfers. So dialers are actually their only way to get into the members-area.

    3.) Credit cards are not very common in Germany. I would guess only some 30% have one and many who have one don’t believe that CC transactions on the internet are secure. So most of the surfers have only 2 options left: Paying by bank account or using a dialer. The bank account has 2 disadvantages in the eyes of the surfers: 1st “The sponsor knows my name, my account number, where I live and that I’m a greasy little wanker who pays for porn. -Maybe this sponsor is going to tell my neighbors about it-” 2nd “How can I explain this to my wife?” On the other hand the dialer has advantages: 1st It is anonymous. Nobody knows who and where the surfer is. 2nd The dialer is faster than typing all the necessary information needed for a bank transaction. A few seconds for a 35kb download and the surfer is ready to go. 3rd You can always find a reason why there’s this 0190-number on the phone-bill. “Well darling, you know, I had problems with my new graphic card and I had to contact the customer-support. Those damn bastards are on a 0190-number what what can I do?”

    Well, that’s about it on dialers. One warning at the end: If you like to give them a try beware of those that do auto-downloads and auto-installations. Surfers don’t like them. Use dialers where the surfers needs to click somewhere to download and install them.

    Article written by Lee

  • SEO Pyramid Scheme

    Date: 2011.02.24 | Category: Search Engine Optimization | Response: 0

    I thought i would spend a little time to let you guys in on a little something i like to call the SEO Pyramid Scheme

    Basically, we all know the importance of targeting specific keywords and phrases however, this isn’t necessarily the easiest of things to do until now…

    Lets take a simple free site as our example, We know we have to have Meta Tags, Descriptions, Alt Texts and Body text on our site but how do we keep this all in within the theme of our site and, more importantly, how do we make sure we target as much of our niche traffic as needed? Actually the process itself is a simple one that has been around for many years however, very few people make good use of it.

    So we have our free site all ready and waiting to be optimized for the search engines the first thing we need to do is take a look at our sites content (read as images) and make a short mental description of them so for example, if we have a teen site the pictures may be of a ‘blonde sexy teen model wearing stockings’.

    That description is the basis for our keyword pyramid.

    We now have to construct our pyramid based on that brief description so we start o break it down word by word for example:

    Blonde
    Sexy
    Teen
    Model
    Stockings

    That is our primary layer in the pyramid already completed, not so hard really was it

    Now comes our second level in our SEO pyramid:

    Blonde Sexy
    Sexy Teen
    Teen Model
    Model Stockings

    As you can see from this we now have our secondary layer of the pyramid all worked out onto our tertiary layer:

    Blonde Sexy Teen
    Sexy Teen Model
    Teen Model Stockings

    Now we have our tertiary layer for our pyramid we can continue this for further layer like this:

    Blonde Sexy Teen Model
    Sexy Teen Model Stockings

    Again, we can break this down one more level like this:

    Blonde Sexy Teen Model Stockings

    We now have 5 layers to our pyramid.

    The next stage is to incorporate these layers into both your Meta Tags and, more importantly you body text.

    Take each layer in turn and, where possible include one line from each later into each portion of our HTML code from the Meta Tags, Alt Tags, Main Body Text, Hyperlink Text and, Image File Names.

    By working through each layer of this SEO pyramid at a time you will not only discover keyword rich phrases that you could otherwise be missing out on in the search engines but, you will give your sites a theme making your chances of being listed for the correct search terms even better.

    Article written by Le

  • Whats A Twink

    Date: 2011.02.24 | Category: General | Response: 0

    I think you would be surprised at the number of times I have been asked, “What’s a Twink?” Or my, personal, favorite “So how do two men have sex?”

    If you know me, you know I am never really bothered by questions – I never mind people’s candor. What does bother me, though, is the bulk of the people who ask are trying to work the gay market. Unsuccessfully, I might add.

    So, let’s expand our webmaster knowledge. Don’t worry, I am not about to explain how two men have sex (that I will save for my story site LOL)

    I have decided, however, to give you a Gay Glossary of sorts. There are many terms that can be included here. But, I thought to start off, we will hit the basics and add to it as time goes on. Keep an eye for future articles and additions on Gay Wide Webmasters.

    Here is a list of the most common terms on the Gay Adult ‘net:

    • Twink – A buff and lean young man; a 20 something. Age and leanness make the guy a twink. The best example is your typical bar room stripper.
    • Teen – This is the same thing as in EVERY market, hot young and under twenty – but LEGAL at 18.
    • Hunk/Stud – Beautiful, built and beefcake. The guys commonly posing for calendars and such.
    • Chubs (or chubby) – Just what it sounds like, a larger man. Not just muscular weight, most often heavy set.
    • Bears – This is a HAIRY man. Not a young guy, most often over thirty, sometimes with a husky build (but not always). You will probably see this niche sold as “Real Men”.
    • Cub – This is a YOUNG hairy guy. Sort of a HAIRY TWINK…
    • Daddies – Daddies are men over thirty, who like younger guys. (Just a side note here to clear up some misconceptions, not all gay men want to do young guys!)
    • Sons – the young male counterparts to Daddies. The young of the two can be a twink, cub or teen – makes no difference. This term is based on the visual couple. For our non-gay friends think of this as an example: the businessman who goes away for the weekend with his NEICE. See the comparison? LOL
    • Transvestite – is a man who dresses as a woman. Whether it is simple underwear or all our female attire. A lot of webmasters confuse this with Transsexual.
    • Transsexual – is a person who has decided to make the complete change and have a sex change.
    • Trans Gender – this is a more general term for people who live life as the opposite sex. They are in the process of, or have completed, a sex change.

    So know go have some fun. Try to classify your friends and lovers in these terms! I enjoy it when a webmistress comes up to me and says, “I heard your interview and I think my husband is a bear. But he’s a little twink-ish. What do you think?” This just makes my day! I have to laugh at the look on their husband’s face when they think I’m going to ask to examine them or something. “Turn you head and cough – OH! You’re a Twink…”

    Along with what works, I have to offer some terms that DO NOT work. If used incorrectly or out of context, then your attempt at marketing to gay men can be dreadful.

    • Faggot – I hate this word, personally. This is a word that is as derogatory to the Gay Community as other words are to a race.
    • Nancy boy – a typically non-US term that basically is used as a derogatory manner.
    • Lil Boys – a derogatory term used primarily in the Southern and Mid-Western US. It’s derived from the negative connotation that gay men are pedophiles.
    • Gay Owned and Operated. Allow me to be blunt – If it is not true, do not say it. This is probably the most OVER used phrase in the gay adult market. So much so, it is relatively meaningless today.

    We all need to remember from time to time, the key to success in any business is knowledge. Whether you are up selling to a sponsor or designing sites, knowing some of the more common terminology in the gay community can only help your ventures in the gay adult market. And remember, do not be afraid to try and NEVER be afraid to ask.

    As always, good luck!

    Article written by Gary-Alan

  • Using Basic Server Side Includes (SSI)

    Date: 2011.02.24 | Category: WebDesign | Response: 0

    Server side includes are what their name sounds like.  A way to include the contents of another file into your current web page BEFORE the web page gets sent off to the surfer.  Not only does this include contents of a static file but you can also include the results of a CGI program and on some web servers, you can even have it display the current date and time.

    Now, many web hosts do not normally have server side includes turned on. You will have to ask your host if they have SSI turned on and if they do, what is the file name extension for SSI.  By default, SSI files have an .shtml extension.

    Sometimes, you can turn SSI on yourself.  If you host doesn’t have SSI turned on for you already, you can try adding the following two lines to your .htaccess file.  Then create a file with the .shtml extension, include a SSI command and see if it works.

    AddType text/html .shtml
    AddHandler server-parsed .shtml

    When you use SSI commands, you place them exactly in the location within your web page where you want the output of the SSI command to appear when you finally browse the page.  If you have SSI, then you can use the following command to include a file.  When you include a file, you can either give it a path name to the file or you can give a URL to the file. I’ll list both here.

    <!–#include file=”/some/path/above/my/web/to/my/header.html” –>

    This is an example of how to include a file based on its path name.  Now,
    here’s the same file put included with its URL.

    <!–#include virtual=”/to/my/header.html” –>

    And this is an example of how to use a URL.  With a URL however, it cannot be a complete URL such as http://www.somesite.com/somefile.html.  It has to be within your current website.  You can also use the URL method to run a CGI script!  Here’s an example of that:

    <!–#include virtual=”/cgi-bin/somescript.cgi?myfirstarg=1amp;mysecondarg=2″
    –>

    As you can see, we can even pass arguments to the CGI script just as if you typed it into your browser!  There is also another way of running a CGI script but this is not as widely used any more and you should use the #include virtual method instead.  Here is the same example so that you will know what it means when you see it.

    <!-exec cgi=”/cgi-bin/somescript.cgi?myfirstarg=1amp;mysecondarg=2″ –>

    As I mentioned earlier, you can use SSI to display the current time and date. Here’s how:

    <!-echo “$DATE_LOCAL” –>

    This will display the current date and time. SSI is usually used when you  want to have a standard header or footer on each page.  It’s also used for displaying rotating banners or page counters. As you see above, you can also  use it to display the current date and time or the date when the page was  last modified.

    SSI has also been used for cloaking and some tracking  software uses SSI to track each incoming hit to the web page.  If you would  like more information about SSI, go to
    http://www.apache.org/docs/mod/mod_include.html.  This is the definitive guide on SSI on the Apache web server.

    Most other web servers that use SSI also follow these conventions.

    Article written by Lee

Premium Sponsors















Categories

Site Links