educational

Getting Listed With Search Engines

Unlike most articles on search engines this has nothing to do with meta tags. Instead we are going to discuss the rights and wrongs of redirects. The use of redirects in Adult Websites is very popular, but just how many people are using them the right way?

Being a tech with a well known web host I recently got to watch the error log on a google index spider. The spider entered our network and started listing pages, however much to my dismay I found it doing something else. The spider also started following the redirects. The problem here is it wasn't following the links everybody had hoped for.

First you may ask how I knew it was the google spider as google doesn't announce when it's going to spider. That was easy. The monitoring alarms for our servers started going off. I was finding disk space problems. While checking these disk space problems I found the error.log for apache growing on all our servers. Co-incidence? I think not.

While watching the logs grow, I was getting a feel for the most common errors that I was seeing. It was redirect errors in .htaccess files. Upon further investigation I was finding the SE spider was skipping these sites when it received the redirect error. I then started looking at the .htaccess files to find where the spider was 'erroring.' The things I found there prompted me to write this article and try to educate webmasters on the correct usage of .htaccess files. Listed below in order are the problems I found and the correct way of fixing the problem.

Redirects: This was the number one error the spiders found:

ErrorDocument 404 http://www.mydomain.com

Any problems with the above statement? Most webmasters will say no. However the above statement is completely wrong and will force a spider off your page and into an error. This will not only make the spider not list your site, but it will also force the spider to stop following your links, thus hurting you in Search Engine Listings. The proper way to make this statement is as follows: If you're sending people from your current domain on the error to another domain, then the correct syntax is:

Redirect 404 http://www.mydomain.com

If you're keeping them on your domain but sending them to a custom error page, then the proper syntax is as follows:

ErrorDocument 404 /errors/404.html

The above path means there is a folder called 'errors' and a html document called '404.html' in that folder. That folder would be the first branch off where the .htaccess file is located.

Problem 2 with redirects:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$ [NC]
RewriteRule .*\.(gif|GIF|Gif|jpg|JPG|jpeg)$
http://www.mydomain.com [R,L]

Some people try to use the above for capturing hot-linkers to their site. This syntax does not work at all. The correct way to do this is as follows:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$ [NC]
RewriteRule .*\.(gif|GIF|Gif|jpg|JPG|jpeg)$ - [F]

If anybody is hot-linking to you then it will create a 403 error (Forbidden). So under this statement you use either Redirect or Errordocument from the above lesson. IE:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$ [NC]
RewriteRule .*\.(gif|GIF|Gif|jpg|JPG|jpeg)$ - [F]
ErrorDocument 403 /error/403.html
You won't only reap the rewards in better directed traffic, but it will help reduce your bandwidth and server crashes also.

I hope this helps you in your quest for making sure your traffic gets to your most profitable pages. If you find your .htaccess file is in error, please fix it. You won't only reap the rewards in better directed traffic, but it will help reduce your bandwidth and server crashes also. Your web server software won't be working as hard to figure out where you really wanted your traffic to go.

Copyright © 2024 Adnet Media. All Rights Reserved. XBIZ is a trademark of Adnet Media.
Reproduction in whole or in part in any form or medium without express written permission is prohibited.

More Articles

opinion

Navigating Fraud Prevention in Credit Card Transactions

In the digital age, credit card transactions are essential to global commerce, providing unmatched convenience for consumers and businesses alike. With this convenience, however, comes the risk of credit card fraud, which can result in considerable financial losses and harm brand reputation.

Jonathan Corona ·
opinion

A Guide to Avoiding Scams in Hard Link Media Buying

‘If it sounds too good to be true, it probably is.” So cautionary wisdom reminds us, yet people still get scammed all the time. Fortunately, there are “red flags” you can watch for to help you identify scams and thereby avoid them.

Juicy Jay ·
opinion

The Dos and Don'ts of AI-Generated Content

AI is a hot topic. From automation to personal assistance to content generation, AI technology is already impacting our daily lives. Many industries, including adult, have had positive results using AI for customer support and marketing.

Cathy Beardsley ·
opinion

Strategic Upscaling of Non-4K Content

If content is king in adult, then technical quality is the throne upon which it sits. Technical quality drives customer acquisition and new sales, while cementing retention and long-term loyalty.

Brad Mitchell ·
profile

'Traffic Captain' Andy Wullmer Braves the High Seas as Spirited Exec

Wullmer networked and hobnobbed, gaining expertise in everything from ecommerce to SEO and traffic, making connections and over time rising through the ranks of several companies to become CEO of the mobile business arm of TrafficPartner.

Alejandro Freixes ·
opinion

To Cloud or Not to Cloud, That Is the Question

Let’s be honest. It just sounds way cooler to say your business is “in the cloud,” right? Buzzwords make everything sound chic and relevant. In fact, someone uninformed might even assume that any hosting that is not in the cloud is inferior. So what’s the truth?

Brad Mitchell ·
opinion

Upcoming Visa Price Changes to Registration, Transaction Fees

Visa is updating its fee structure. Effective April 1, both the card brand’s initial nonrefundable application fee and annual renewal fee will increase from $500 to $950. Visa is also introducing a fee of 10 cents for each settled transaction, and 10 basis points — 0.1% — on the payment volume of certain merchant accounts.

Jonathan Corona ·
opinion

Unpacking the New Digital Services Act

Do you hear the word “regulation” and get nervous? When it comes to the EU’s Digital Services Act (DSA), you shouldn’t worry. If you’re complying with the most up-to-date card brand regulations, you can breathe a sigh of relief.

Cathy Beardsley ·
opinion

The Perils of Relying on ChatGPT for Legal Advice

It surprised me how many people admitted that they had used ChatGPT or similar services either to draft legal documents or to provide legal advice. “Surprised” is probably an understatement of my reaction to learning about this, as “horrified” more accurately describes my emotional response.

Corey D. Silverstein ·
profile

WIA Profile: Holly Randall

If you’re one of the many regular listeners to Holly Randall’s celebrated podcast, you are already familiar with her charming intro spiel: “Hi, I’m Holly Randall and welcome to my podcast, ‘Holly Randall Unfiltered.’ This is the show about sex, the adult industry and the people in it.

Women In Adult ·
Show More