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 https://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 https://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} !^https://yourdomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.yourdomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^https://yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.yourdomain.com/.*$ [NC]
RewriteRule .*\.(gif|GIF|Gif|jpg|JPG|jpeg)$
https://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} !^https://yourdomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.yourdomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^https://yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://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} !^https://yourdomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.yourdomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^https://yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://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 © 2025 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

Identifying and Preventing Transaction Laundering

Recently, a few merchants approached me after receiving compliance notifications from their acquirer about transaction laundering. They were unsure what it meant, and unsure how to identify and fix the problem.

Cathy Beardsley ·
profile

WIA: Alexis Fawx Levels Up as Multifaceted Entrepreneur

As more performers look to diversify, expanding their range of revenue streams and promotional vehicles, some are spreading their entrepreneurial wings to create new businesses — including Alexis Fawx.

Women In Adult ·
opinion

Navigating Age-Related Regulations in Europe

Age verification measures are rapidly gaining momentum across Europe, with regulators stepping up efforts to protect children online. Recently, the U.K.’s communications regulator, Ofcom, updated its timeline for implementing the Online Safety Act, while France’s ARCOM has released technical guidance detailing age verification standards.

Gavin Worrall ·
opinion

Why Cyber Insurance Is Crucial for Adult Businesses

From streaming services and interactive platforms to ecommerce and virtual reality experiences, the adult industry has long stood at the forefront of online innovation. However, the same technology-forward approach that has enabled adult businesses to deliver unique and personalized content to consumers worldwide also exposes them to myriad risks.

Corey D. Silverstein ·
opinion

Best Practices for Payment Gateway Security

Securing digital payment transactions is critical for all businesses, but especially those in high-risk industries. Payment gateways are a core component of the digital payment ecosystem, and therefore must follow best practices to keep customer data safe.

Jonathan Corona ·
opinion

Ready for New Visa Acquirer Changes?

Next spring, Visa will roll out the U.S. version of its new Visa Acquirer Monitoring Program (VAMP), which goes into effect April 1, 2025. This follows Visa Europe, which rolled out VAMP back in June. VAMP charts a new path for acquirers to manage fraud and chargeback ratios.

Cathy Beardsley ·
opinion

How to Halt Hackers as Fraud Attacks Rise

For hackers, it’s often a game of trial and error. Bad actors will perform enumeration and account testing, repeating the same test on a system to look for vulnerabilities — and if you are not equipped with the proper tools, your merchant account could be the next target.

Cathy Beardsley ·
profile

VerifyMy Seeks to Provide Frictionless Online Safety, Compliance Solutions

Before founding VerifyMy, Ryan Shaw was simply looking for an age verification solution for his previous business. The ones he found, however, were too expensive, too difficult to integrate with, or failed to take into account the needs of either the businesses implementing them or the end users who would be required to interact with them.

Alejandro Freixes ·
opinion

How Adult Website Operators Can Cash in on the 'Interchange' Class Action

The Payment Card Interchange Fee Settlement resulted from a landmark antitrust lawsuit involving Visa, Mastercard and several major banks. The case centered around the interchange fees charged to merchants for processing credit and debit card transactions. These fees are set by card networks and are paid by merchants to the banks that issue the cards.

Jonathan Corona ·
opinion

It's Time to Rock the Vote and Make Your Voice Heard

When I worked to defeat California’s Proposition 60 in 2016, our opposition campaign was outspent nearly 10 to 1. Nevertheless, our community came together and garnered enough support and awareness to defeat that harmful, misguided piece of proposed legislation — by more than a million votes.

Siouxsie Q ·
Show More