-
Getting Webmaster Traffic To Your Design Site
Just starting in the design biz? Well you’re going to need some traffic to your design work. You need to get your name out to as many people as humanly possible. If you don’t have the contacts, then you don’t have the work. Network, communicate, and setup your portfolio. These are the 3 most important steps when starting your design company, preceding these three steps are advertising and demonstrating.
When I first started designing, I had no clue what I was doing except for designing websites. I knew I needed clients, but had no idea where to start. I met up with a ouple of other webmasters one night. I told them I had just started and was looking for some work. They took me in and taught me the trade. They showed me a few tricks in how to design things much quicker, and also subconsciously taught me to make sure as many people as possible see my work, and that they know who its from.
I worked with my friends for a few months when things started to get slow, so I took it upon myself to start my own company. I still got outsourced work from them, but now was taking on my own clients, but I had forgotten one important step. Advertising, the biggest step to forget. So I started posting on message boards to get my name in the dirt. I received a few clients, but nothing large. Then one day out of the blue a man came to me and wanted 4 pay sites designed. Wow, a real client at last. He said he saw my posts on a resource forum and decided to use me for his work.
I worked for this client for about 2 months, and more and more people were coming to me. I had been doing something good, but work started to slow and finally I realized I had been working for the same few clients and had not been getting anyone else in the door. Maybe board posting wasn’t enough? Exactly, its not, I asked around to see what I could do I had gotten a few suggestions like banner trades, recip’s, work for advertising. So I did them all. And soon enough I had more clients than I could shake a stick at.
Network.
Talk to people, people that are in the biz. Webmasters and designers. Talk to anyone you possibly can that could further spread your name of even bring work to you. If you do not network, then don’t plan on anything coming your way.Communicate.
Get on boards, ICQ, AIM, MSN, whatever. Just make sure that people see you and know you are there. Send them emails with different offers, not spam, but personal emails. Take it upon yourself to try and get your name into the field.Portfolio.
If you do not have one of these, then you might as well try to sell a spider to an arachnophobe. Design some fakes sites if you don’t have anything to show. Do some banners, tours, anything that shows the potential of your work. Make sure you present it as efficiently as possible. People do not want to root around not knowing what they are looking at.Advertise.
Make banners, buttons, links, ads, and anything that you can stick your name on. Get listed on any and all Webmaster resource sites, and design sites. This will help you establish a name base and let people know you are around.Demonstrate.
Write articles for resource sites, create different tutorials also, this will let people know you know what your doing. The more people that like your ideas, the more they will like you. Therefore the more likely you will get work.Follow these steps as I did and you will be on your way to having clients beating down your door. Also, make sure you really have something to offer before trying to sell your work. Be unique in what you design and how you present it. Clients love it when their sites are different from others, obviously.
Article written by John
-
Golden Rules For Finding A New Domain Name
We all know by now that domain names are being registered at an unbelievable rate and, whilst the vast majority of ‘decent’ domain names have already been registered there are still some god domains to be registered and, this article will give you some insight into how you can choose an effective domain for your business purposes – regardless of what they are.
Avoid Play On Words.
Whilst sitting at a bar you come up with an idea for a domain www.4play.com and, at the time this might seem like a great domain name to buy however, before you head to your favorite register and purchase the domain stop to think about the long term implications.Let me explain this a little more using the example www.4play.com lets think about this, every time you mention the domain in a conversation people are more likely to head across to www.foreplay.com or www.fourplay.com first as a type-in. This is also true of the other abbreviation styles of ‘internet slang’ remember the days of the ‘dot com’ registrations, you know domains such as www.dotsex.com looking back now, these seem ridiculous to have been registered however, at the time they were popular but they died their death years ago.
Think Investment.
A good ‘commercial’ domain must be able to distinguish itself from the competition, there are several ways to achieve this for example:Consider Your Target Audience.
Aim your domain at a specific, yet broad market audience. use tools to narrow down what your customers (surfers) are looking for, narrow this list down to a select few domains and then, narrow the list down some more.Follow Trends Or… Create Them.
If you are serious about picking a good domain name or two then be prepared to invest the time required to get a good domain name. Research the latest trends on the internet, see what products or services are ‘hot’ and will be around long term and also see which domains are just a flash in the pan.A good example of ‘long term’ domains would be www.europeanwebmasters.com which i registered several years ago when, in all honesty, the foreign markets were not even thought about however, you cant go to any forum nowadays without someone asking about the international marketplace.
Act On A Whim.
In complete contrast to my opening statement in this article, if you think you have a solid business idea, act on it, the chances are someone else will also think of the same idea as you and, if you don’t get the domain name first, they will.Alternative Buying.
So you have decided that you do want to buy www.4play.com before you make your purchase have a look at what other variants of this domain are available, for example, you might like to check registrations of www.4-play.com, www.for-play.com, www.forplay.com, etc etc.If you have a great business idea, make sure you have all of your bases covered, just because you are starting a new craze, that doesn’t mean the domains will be available for registration tomorrow or next week.
By purchasing all the variants of the high quality domain you have thought of you are, in effect, eliminating all of the competition you could face long term.
Don’t Cyber-Squat.
If you are a serious domain buyer, avoid tailgating on other peoples domain names unless of course, it has enormous potential for example, if someone has registered a generic domain such as www.123456.com but failed to register www.123-456.com why not register the available domain? You are not impeding on anyone’s property rights and, you might benefit from some mis-typed traffic at the same time. As with any type of mis-typed domain, before you register it, seek legal advice, a few dollars spent before registering the domain could save you thousands afterwards.Fools Rush In.
Don’t automatically buy the first domain name you think of, think on it some more, sleep on it if you have to, ask your family and friends on their opinions. Although the really good domain names have virtually almost all gone, its better to carefully think out each and every domain name purchase you make and save yourself some money long term than to rush in and buy a domain that wont be any use and have to register a new domain to take the place of the first.In addition to the above don’t sit on a really good domain name idea forever because, forever comes a lot sooner than you may think.
Hopefully this article has given you some useful information in respect of registering new domain names and you can put this information to good practice when buying domains. Article written by Lee
-
Mixing Business With Pleasure
Regardless of your status in the world of web mastering there will come a time when you will want to attend one of the numerous webmaster seminars. However, what should you do to plan for the day you attend your first seminar, are there some things you should aim for and things you shouldn’t? Well in this article we will take a look at planning your conventions.
Before attending the convention of your choice there are a few things that you should prepare these are.
Exercise.
get out for half an hour each day at least two weeks before the day of your journey to the convention. You will be surprised at how much time you will spend walking around the convention floor and, by getting some basic exercise in before hand you wont feel the strain of being on your feet for hours at a time instead of being sat in front of your computer.
Contacts.
Make a list of people that you want to see and arrange with them in advance a time to meet up and have a chat. Most people who attend these conventions are busy for the entire course of the show. You may not get a chance to pop by their booth and talk tot hem if someone has already beaten you by booking a time to chat with the person you want to meet. It is also a good idea to trade hotel and cell phone information before leaving for the show, this way, if anything happens to make you miss a possible appointment you can call or leave a message informing them you will either be late or canceling.
Seminars / Parties.
Take a look at the events and seminars happening at the convention before you go, plan which ones you will want to attend make a list and take it with you. This will save you countless hours of wandering around aimlessly hoping to make all of the seminars and get to as many parties as you can in three days.
Booths.
Look at who is exhibiting at the convention, find out their booth number and make a note of it. List any specific details you may want to speak to the booth owners about. You can guarantee if you go unprepared you will miss out that important question or selling opportunity you wanted to make.
Baggage.
When packing your suitcase for the convention make sure you leave plenty of room for convention give a ways, You will be surprised at what you will be given for free at these shows, t-shirts, toys, books, flyers, you name it, you will be offered it.
So, you have done the pre check, what do you do when you actually arrive at the convention?
Food.
Eat at every opportunity you get. Most people will end up not eating for the entire length of the convention. perhaps even arrange to meet up with someone you want to talk to in a restaurant and grab a bite to eat whilst talking business.
Business Cards.
Take them and lots of them. Everyone and anyone will ask you for your contact details, if you have a bunch of business cards with you at all times, you can just hand them out. Make sure you include your full contact details, your name, nickname, email, icq and, aim contact details. The more ways you give someone to reach you, the more chance you have of them actually attempting to get in touch with you.
Clothing.
Wear comfortable, clothing and shoes. Think casual but, also think business, shorts and t-shirt may be good for comfort but, it doesn’t portray a good business image and, that’s the sole reason you are attending the convention, to do business.
Parties.
If you get offered an invite to a party, take it, plans change so quickly at the conventions, your friends may suddenly feel tired and you have nothing left to do, attend a party, then you have another opportunity to network some more.
Behavior.
Although the conventions are a fun atmosphere, don’t forget that they are in the first instance a place to do business, treat it as such, you may miss out on the ideal business opportunities if you are acting like a drunk ass hole. This will reflect badly on you long term.
You have taken in all the events you can handle, you have made your way back home what next? how exactly do you put this information and your new found contacts to use?
Business Cards.
Go through all the business cards you have been given and send your new found contacts a quick email thanking them for their time. This will be a good way for you to give them another reminder of what you spoke to them about and, I have personally gotten more business from the shows using this follow up method than if I had just waited for them to contact me.
Notes.
If you made any notes at the show, take a few minutes to re-write them, keep them safe in a notepad, you never know when one of these bits of information may come in handy.
Well, that’s pretty much it for the basics of the adult conventions, obviously there is more to it than this but, if you are attending your first convention you will have a bit of insight into the work involved.
Article written by Lee
-
How To Choose A Legal Content Provider
How To Choose A Legal Content Provider.
If you spend anytime in this business no matter in what capacity, you are going to hear about how important using legal content is. Legal content is content that you have specific permission or license to use on your sites. Permission can come from your sponsor who offers you free content to promote their site, as long as certain criteria is followed. It can come from the producer of the images if he/she is a friend of yours, though I would still advise you obtain a license from them anyway. And the third way of course is to purchase content from one of the myriad of content providers out there. It is the third way I am going to discuss in this article.
Being the intelligent Webmaster you are, you have decided to purchase some legal, fresh content for your sites. Makes no difference what type of site(s) you run, free sites, TGP’s, pay sites etc. fresh, unique content is always a plus. So you begin your search for the content you are in need of. You are going to find that in most all cases you are going to find a LOT of content providers that offer what you are after. You can go to any resource board and get a list of providers that covers page after page, some more detailed in information than others. Some names you will have heard of before and some you will have never heard of, so how do you choose? Here are some of the basic questions you should ask yourself:
Do they carry the type of content I need. Seems simple enough, but if you are looking for Asian lesbian images, no sense wasting your time on a provider that specializes in Gay content. The provider’s site should be laid out that you can easily assess what they offer with the first 2 pages of their site.
What am I using the content for? This becomes very important when selecting what image packages you buy. If you are going to use the content for free sites or TGP’s where the main goal is to get them off your site and on to your sponsor, then quality is not going to be as important as price. If you plan to utilize them in a pay situation, such as AVS or members site, quality should be your first consideration.
What price am I willing to pay? By knowing what you are using the images for, you have a fair idea of what they are worth to you. Do not be fooled into thinking that buying a MEGA disc for .10 an image is a killer deal. It could be, but if the image CD only contains 100 images that you can utilize and the rest are trash, what is the point? Much better to pay a higher price per image to get exactly the kind and quality you want. Shop around of course; per image prices can vary greatly per provider.
How do I know these guys are legit? Excellent question! J More than ever these days you cannot swing a cat and not hit 100 content providers. Every college guy and his brother with a digital camera and a girlfriend think they can make a quick buck in the Adult market. I could very easily list over a dozen so called content providers right now, that have come on with incredible deals only to be gone in less than 3 months. Then the Webmaster finds out the license he has for the images are not worth the paper they printed them on. This is one of the easiest areas for a Webmaster to get ripped off in. So what to do? Research my friends, research!
a. Ask the provider for copies of the 2257’s they are required by law to have on premises. Any reputable provider will supply these to you; many include them with the license even if you don’t ask for them. Any provider that bulks at doing so upon request should be taken off your shopping list.
b. Read over the license agreement very carefully, before you buy. Not every license is the same, some allow you a certain percent of images for promotional use, such as creating banners etc. some prohibit it. How many sites and domains you can use the images on vary, as does the price they charge to add or transfer a domain or license. Remember the license is a legal document and should be treated as such.
c. Ask around! Reputation is so very important in this business and the good providers know it. Don’t be shy about asking the provider directly for references, emailing fellow Webmaster’s and even posting for comments on the boards. Make sure you get a good cross span of answers from all sources, so you can quickly weed out anyone that is deliberately trying to make a provider look bad. This could be their competition or a Webmaster that tried to use the content illegally and got busted. So make sure you ask people your respect and trust. Find out not only about how they’re prices stack up, but also about their customer service after the deal is done. And NEVER assume just because a provider is listed on your favorite resource board that they are legit. Though most resources will try and screen people they list, there is no guarantee. There is no substitute for researching it for yourself.
Following these simple guidelines will save you a lot of grief in the long run. It may take a day or two for you to get the feedback you need, but it could save you from taking down hundreds of galleries later on. Or worse, paying for a product you never receive. And trust me, that happens.
Article written by Bestat.
-
Newbie Webmasters – What Is A Newbie?
Newbie Adult Webmasters are something that is good for the adult industry as a whole. As more Newbie Webmasters join the adult industry the way in which things are done change and, more importantly, the way in which the newbies themselves get taught changes however, just what is a ‘Newbie’ when it comes to the adult industry? This is what we will take a look at in this brief article.
Adult Webmaster Newbie – The Differences.
Irrespective of what anyone tells you, everyone in the adult industry is a newbie its just a matter of figuring out what they are a newbie at. For example, personally i have just taken to learning PHP as a programming tool, i have never coded anything before so, i am officially a php newbie. Likewise there are webmasters who have never built a TGP gallery, they are TGP newbies, in fact, every facet of the adult industry has its own newbies some of them have been around for days whilst others have been around for many years. Going by the ‘true’ meaning of the word however, a newbie is someone who knows very little about very little.Message Board Newbies.
At some point or other every webmaster will want to start posting on some of the industry’s message forums, whether this is to make friends or ask advice you will instantly be branded a newbie from your first post, if this isn’t the case, make sure that you give a brief history about what you do in the adult industry and, more importantly, how long you have been doing it, don’t go overboard however, just give enough information to let others know what it is you are doing on the message forum.Newbie Adult Webmasters – Overview.
The perception of newbie webmasters is that many of them do not know what they are doing however, just because someone hasn’t heard the name before on a specific message forum this doesn’t mean the webmaster is in fact a true ‘newbie’ we all need to ensure that when using the term newbie we don’t make ourselves look like newbies in the process.Article written by Lee
-
JavaScript – Redirecting Foreign Surfers
At some point or another we are no doubt going to have the need to redirect some or all of our surfers based on the language they speak, this snippet of JavaScript when placed on your page will enable you to do just that without the need for .php or other more complex scripting.
Here is the coding that you need to place between your <head> and </head> tags:
<SCRIPT LANGUAGE=”JavaScript1.2″>
<!– Begin
if (navigator.appName == ‘Netscape’)
var language = navigator.language;
else
var language = navigator.browserLanguage;if (language.indexOf(‘en’) > -1) document.location.href = ‘english.shtml';
else if (language.indexOf(‘nl’) > -1) document.location.href = ‘dutch.shtml';
else if (language.indexOf(‘fr’) > -1) document.location.href = ‘french.shtml';
else if (language.indexOf(‘de’) > -1) document.location.href = ‘german.shtml';
else if (language.indexOf(‘ja’) > -1) document.location.href = ‘japanese.shtml';
else if (language.indexOf(‘it’) > -1) document.location.href = ‘italian.shtml';
else if (language.indexOf(‘pt’) > -1) document.location.href = ‘portuguese.shtml';
else if (language.indexOf(‘es’) > -1) document.location.href = ‘Spanish.shtml';
else if (language.indexOf(‘sv’) > -1) document.location.href = ‘swedish.shtml';
else if (language.indexOf(‘zh’) > -1) document.location.href = ‘chinese.shtml';
else
document.location.href = ‘english.shtml';
// End –>
</script>To add additional language redirects to this JavaScript all you need to do is duplicate the:
else if (language.indexOf(‘zh’) > -1) document.location.href = ‘chinese.shtml';
Section of the coding changing the (‘zh’) language code to that of the language you wish to redirect.
Article written by Lee
-
Straight From The Horses Mouth – Get Googlized
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
-
Pay Per Click Traffic – More Than One Use
We all know the stigma surrounding getting traffic to our sites and, this is no different with that of the PPC traffic sources. We have all heard varying stories of success and failure when it comes to this type of traffic whether it be from Googles Adwords program, Overture PPC engine listings or in fact, highly targeted Sex.com adult traffic.
But how much do we all actually know about maintaining this level of traffic once we actually get it and at a minimal cost to our bank balance?
First of all there seems to be a belief that PPC traffic should be sent to a sponsor or one of our existing sites, this is all good and proper but, what happens when the sites we own or the sponsors we use don’t convert on this traffic do we just give up? For the most part, yes webmasters do tend to give up and mark this source of unrivalled traffic as a flop.
Enter the world of traffic manipulation.
We all know about a variety of programs that are available to drive traffic to our existing sites from banner exchanges like Pornclient to text link exchanges like TextPop even to top lists.
So why don’t we utilize these when we buy PPC traffic? Quite simply many webmasters forget that traffic can be manipulated regardless of where it comes from initially.
Lets take a simple listing on sex.com, you fund your account and traffic starts to flow, you get 1000 hits per day for as long as you have funds in your account. Were you aware that this 1000 hits could in fact, become 10,000 hits if we actually thought about our pay per click listings.
How you may be asking especially with so many rules being levied upon us by the PPC traffic sources? Simple, set up a filter page, on this page you should place a single text link which would be your entry link however, you should also place a few other items on the page this is what i will explain next.
Ideally you want to be able to use the traffic you are paying for in order to build up a larger traffic base this is where the use of such programs as banner exchanges and the likes come in handy.
As well as your entry link you should also place a banner exchange (or a text exchange) code on your filter page this will mean that for every visit your page gets from the PPC Engine you are accruing credits towards additional visitors.
In addition to the link exchange you might also like to consider placing a counter on this page specifically, a toplist counter such as Outster or sextracker so, for every page view you receive you get rated further on their toplist.
Also, as we are on the subject of top lists why not place a text link to one on this page? Even though you are sending your traffic out you are actually getting sometimes in excess of twice that back depending on the toplist you choose to use.
Now we have the basics set up we need to look at what else we can do to maximize this traffic, i would suggest having a single console (preferably a blur console) load on this page if the PPC SE allows again, this should contain a link exchange of some description however, you will need to make sure that the account you are using is separate to the one on your filter page.
Finally, remember the entry link, that shouldn’t go directly to your sponsor instead, send it to an FPA (Full Page Ad) first and, on this FPA place a table ad which is pure text at the bottom again, sending this traffic to a variety of other niche filter pages all set up in the same method as the one we have just made above.
Hopefully by using these methods your ventures into the Pay Per Click search engine world will be more fruitful than the webmasters not using the above method.
Article written by Lee
-
Using Mainstream Sponsors On Adult Sites
With the adult industry moving more and more into the mainstream web every week that passes as late i thought it would be an idea to show you guys how it is possible to use mainstream sponsor programs on your adult sites to build up a steady commission check even when a surfer going to your adult site doesnt actually buy anything from your adult sponsor.
Mainstream Sponsor Programs – The Choices.
The first thing that you need to do is to choose a mainstream sponsor that offers you a good choice of products / services to market to your surfers mainstream affiliate programs such as Click Bank, Commission Junction and, Amazon.com are all good places to find a selection of mainstream products and services you can offer your surfers in addition to the adult sponsors you currently use.Mainstream Affiliate Programs – Setting Up.
The first thing that you need to do however in order to offer the mainstream affiliate program products to your surfers is to register a generic, non-adult domain name and, instantly get this domain setup on your current web server.This will be the domain name you use for all correspondence between the mainstream affiliate networks and yourself in addition, this will also be the ONLY domain that you utilize the mainstream linking codes on.
Using Mainstream Sponsors – Getting Started.
The first thing that you need to do now you have your domain and mainstream affiliate networks sorted out is to build a couple of specific ‘doorway pages’ on your new generic domain name. This could include something like an article or product review or perhaps something as simple as an image of the product and a short description which you can use to lead the surfer into the mainstream affiliate programs site, either way, the idea is to have the root of the domain 100% free of adult content and utilize specific doorway pages which you can link to from your adult sites.Generating Mainstream Traffic.
Onto the really easy part, your current free sites all have an enter and exit link correct? If so then you are already half way finished, all you now need to do is to ensure that EVERY SINGLE exit link goes to your mainstream doorway page for a specific product or group of products. Make sure that you do not link to the root of your generic domain at any time but only to specific doorways and, that each of these doorways has a link to the root domain.By linking to your generic site in this way, you are enabling the surfer to choose whether they first of all, want to look at your adult site or, they want to leave the site and go to your mainstream affiliate network sponsor in the process giving you the potential of making a sale at the mainstream affiliate program.
Mainstream Sponsor Programs – An Overview.
By utilizing mainstream affiliate programs in this way you are not only potentially increasing your bottom lines but, you are also utilizing every single click that you get both to and from your site, to often webmasters send their exit links to places like disney.com or google.com and in doing so, they lose out on potential incomes, hopefully when you start marketing your exit links in the manner explained above you will begin to see the benefit of how both adult and, mainstream sponsors can be used in conjunction with each other in order to increase your bottom line profits.Article written by Lee
-
Using .htaccess Effectively
The .htaccess file is an ASCII text document that can be placed in any directory on your site. It can be used to control access to files and directories, and customize some server operation in your site. A .htaccess file can be created in any word processor but must be saved as text only. You must use FTP software in ASCII mode to upload or edit your .htaccess file. For the examples provided here, place the .htaccess file in your root directory.
There are a variety of functions that you can control using .htaccess some of the more useful of these are explained below:
Custom Error Messages.
Add the following to the .htaccess file::
ErrorDocument 404 /notfound.html
After “ErrorDocument” specify the error code, followed by a space, and then the path and filename of the .html file you would like to be displayed when the specified error is generated, each specific error code is detailed below with the recommended codes to be used in the .htaccess file in bold :
200 OK
206 Partial content
301 Document moved permanently
302 Document found elsewhere
304 Not modified since last retrieval
400 Bad request
403 Access forbidden
404 Document not found
408 Request timeout
500 Internal server error
501 Request type not supportedUsing the codes above your error section of the .htaccess file should look like this:
ErrorDocument 301 /notfound.html
ErrorDocument 400 /notfound.html
ErrorDocument 403 /notfound.html
ErrorDocument 404 /notfound.html
ErrorDocument 500 /notfound.html
ErrorDocument 501 /notfound.htmlRedirect to a Different Folder.
Add the following to the .htaccess file:
RewriteEngine on
RewriteRule ^/oldfolder(.*)$ /newfolder/$1 [R]This redirects the user from /oldfolder/anyfile.html to /newfolder/anyfile.html, when the .htaccess file is uploaded to the otherwise empty “/oldfolder” directory.
Denying User Access.
Add the following to the .htaccess file:
<Limit GET>
order allow,deny
deny from 000.00.00.
deny from 000.000.000.000
allow from all
</Limit>This is an example of a .htaccess file that will block access to your site to anyone who is coming from any IP address beginning with 000.00.00 and from the specific IP address 000.000.000.000 . By specifying only part of an IP address, and ending the partial IP address with a period, all sub-addresses coming from the specified IP address block will be blocked. You must use the IP addresses to block access, use of domain names is not supported
Redirect a Machine Name.
Add the following to the .htaccess file:
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
# Rewrite Rule for machine.domain-name.net
RewriteCond %{HTTP_HOST} machine.domain-name.net $
RewriteCond %{REQUEST_URI} !machine/
RewriteRule ^(.*)$ machine/$1This will redirect requests for the machine name machine.domain-name.net to the directory machine on the site domain-name.net.
Different Default Home Page.
Add the following to the .htaccess file:
DirectoryIndex filename.html
Then a request for http://domain-name.net/ would return http://domain-name.net/filename.html if it exists, or would list the directory if it did not exist.
To automatically run a cgi script, add the following to the .htaccess file:
DirectoryIndex /cgi-local/index.pl
This would cause the CGI script /cgi-bin/index.pl to be executed.
If you place your .htaccess file containing the DirectoryIndex specification in the root directory of your site, it will apply for all sub-directories at your site.
Preventing Hot Linking.
Add the following to the .htaccess file:
# Rewrite Rule for images
RewriteCond %{HTTP_REFERER} <URL of page accessing your domain>
RewriteRule ^(.*)$ http://<same as above URL>You would replace the <URL of page accessing your domain> above with the domain name and path of the page that is referring to your domain. For example: www.theirdomain.com/users/mypage/
The RewriteCond directive states that if the {HTTP_REFERER} matches the URL that follows, then use the RewriteRule directive. The RewriteRule directive will redirect any reference back to the referring web page.
Using the above you should, safely be able to publish your sites on the internet knowing that you will not be privy to bandwidth thieves via hotlinking and also, that you will not lose any traffic through pages that are ‘not found’.
Article Written By Lee
Premium Sponsors
Categories
- 2257
- Billing Solutions
- Blogging
- Branding
- Content
- Domain Names
- Employment
- Forms & Contracts
- General
- Hosting
- Link Lists
- Opt-in Mail
- Paid Traffic
- Pic Posts
- Promotion
- Scripts
- Search Engine Optimization
- Sponsors
- TGP
- Traffic
- Tutorials
- Viral Marketing
- WebDesign
- Writing