educational

Increasing Website Performance

In this article we'll examine the essential steps needed to correct your website structure for proper performance. You'll learn why you should resolve your website to a single home page URL, along with other critical elements that all websites should have in place such as custom error pages and more.

Canonicalization
Canonicalization is the process that determines how various equivalent forms of a name are resolved to a single standard name. The single standard name is also known as the canonical name. For example, most people would consider these the same URLs: www.example.com; https://example.com/; https://www.example.com/; and https://www.example.com/index.html — but technically, all of these URLs are different, so a web server could return completely different content for each of these page URLs.

When a search engine "canonicalizes" a URL, it tries to pick the one that seems like the best representative from that set. In some cases it is believed a few algorithms penalize these multiple home page URLs for being duplicate content.

One other problem is that some ranking algorithms, specifically Google's PageRank, ends up spreading out the PageRank across all URL versions of a set of homepages; so when your site should actually enjoy a PageRank of five, it ends up ranked as a PR 3 because the distribution of ranking points is spread out over multiple pages.

Further contributing to a lesser PageRank is the fact that all people post links differently to your site. Some use the 'www,' some don't. Some use the '.com,' while others use the full '.com/index.html.' This means that each of these pages is receiving its own inbound link credits, rather than all of that link juice pointing to one single URL.

Many older sites built their homepage as an 'index.htm.' Then a couple years later when they updated and redesigned the site, they changed over to 'index.html' — and then a few years after that, they redesigned again, using a content management system (CMS), and now their homepage is named 'index.php.' The old versions were not removed and now they have up to three different homepage file types (htm, html and php) on the server and each of those can have six or more variations of URLs — you may even be displaying different homepages to different people if you've forgotten to take down the old pages!

How do you know if your home page is resolving to multiple URLs? Open a browser and go to your homepage and change the variations of the URL — do it with and without the 'http,' with and without the 'www' and with and without the 'index.htm' (or whichever extension you're using). If each time you type in a different URL version your page opens without changing the URL in the address bar — in other words the URL displays exactly how you type it in each version without defaulting to one, single, SAME, URL — then you need to fix this problem.

How do you fix this? By setting up proper, permanent 301 redirects in your .htaccess file:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.yourwebsite\.com$
RewriteRule ^(.*)$ https://www.yourwebsite.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(([^/]+/)*)index\.html\ HTTP/
RewriteRule index\.html$ https://www.yourwebsite.com/%1 [R=301,L]

ErrorDocument 404 https://www.yourwebsite.com/error.html

In our example, the first 'condition' takes all requests for BASE ROOT URL options, such as 'yourwebsite.com;' 'www.yourwebsite.com;' 'https://yourwebsite.com;' and 'https://www.yourwebsite.com;' and redirects them to the URL you specify; in this case, 'https://www.yourwebsite.com.'

Be sure to change "yourwebsite.com" to your own domain name.

Check Your Links
Dead links are no good for customers, potential customs or search engine spiders. On almost every site I review I find that 10 percent or more of the internal links are dead.

It is so easy to accidentally mistype an URL for links. You must check your links on a regular basis! If you have a small site with relatively few links then you can test this manually. If you have a large site then you can use automated link checkers found online or purchase software to check your links.

Orphan Pages
An orphan page is one that has absolutely no site navigation on it. I see this many times on sites that offer a larger view of a photo or a snippet of a video. They pop these open in a new page and the picture or video is the only object on the page.

If folks don't realize you've popped them on to a new page, they will try the back button to go back to the previous page — which of course will not work and then they're lost — or people send links to their buddies of those picture or video snippet pages and when their friends get there and like what they see, they don't know how to find your home page to get more of your content.

This isn't good at all, so make sure to have your site navigation links on ALL web pages. At the very least, add a link back to the page they clicked away from and/or your sitemap.

Custom Error Pages
Bad links are everywhere, such as links to old pages that are no longer on your server —— while mistyped links occur constantly. This is why you must have custom error pages; they don't have to be anything fancy; and often, the simpler they are the better.

Make sure your site navigation is included on the error page, and add a simple "Sorry, we can't find that page" message, along with a little guidance such as "click here to go to our homepage or here to go to our sitemap to find what you're looking for."

In our sample .htaccess code, you'll notice the last line deals with the proper re-direction of errors on your site to your custom error page.

Subfolder Index Pages
You probably use subfolders for images, scripts, ads and many other files; but you may not be using an index file in each of those folders. This means that anyone can type in the base URL of the subfolder, such as 'www.yoursite.com/images/' and the server will look for an index page in that folder — and if an index file is absent from that folder, then the server will put up the parent folder page with all of the folder's contents clearly listed.

If you want to keep prying eyes out of those folders, an index page is needed. You can make a simple "you don't belong here" type of page or even redirect that index to another page of your choosing, such as your homepage, for example.

In our next installment, we’ll cover maximizing universal and image search results; setting up a robots.txt file; preventing someone from sending spam that appears to be from your domain; using the primary sitemap files; Google, Yahoo and MSN webmaster tools that can improve your site’s search engine performance; and analyzing your traffic sources.

Related:  

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

profile

WIA Profile: Samantha Beatrice

Beatrice credits the sex positivity of Montreal for ultimately inspiring her to pursue work in adult entertainment. She had many friends working in the industry, from sex workers to production teams, so it felt like a natural fit and offered an opportunity to apply her marketing and social media savvy to support people she truly believes in and wants to see succeed.

Women In Adult ·
opinion

Understanding the Latest Server Processors

Over the last decade, we mostly stopped talking about CPU performance. Recently, however, there has been a seismic and exciting change in the CPU landscape, due to innovation by a chip company called Advanced Micro Devices (AMD).

Brad Mitchell ·
opinion

User Choice, Privacy and the Importance of Education in AV

As we discussed last month, age verification in the adult sector is critical to ensuring legal compliance with ever-evolving regulations, safeguarding minors from inappropriate content and protecting the privacy of adults wishing to view adult content.

Gavin Worrall ·
opinion

Maintaining Payment Processing Compliance When the Goalpost Keeps Moving

VIRP is the new four-letter word everyone loves to hate. The Visa Integrity Risk Program went into effect last year, and affects several business types — including MCC 5967, which covers adult and anything else with nudity, and MCC 7273, dating services that don’t allow nudity.

Jonathan Corona ·
opinion

Making the Most of Your Sales Opportunities

The compliance road has been full of twists and turns this year. For many, it’s been a companywide effort just to make it across that finish line. Hopefully, most of us can now return our attention to some important things we’ve left on the back burner for months — like driving revenue.

Cathy Beardsley ·
profile

YourPaysitePartner Marks 25-Year Anniversary Amid Indie Content Renaissance

For 25 years, YourPaysitePartner has teamed up with stars and entrepreneurial brands to bring their one-stop-shop adult content dreams to life — and given the indie paysite renaissance of the past few years, the company’s efforts have paid off in spades.

Alejandro Freixes ·
opinion

WIA Profile: B. Wilde

B. Wilde considers herself a strategic, creative, analytical and entertaining person by nature — all useful traits for a “marketing girlie,” a label she happily embraces.

Women In Adult ·
opinion

Proportionality in Age Verification

Ever-evolving age verification (AV) regulations make it critical for companies in the adult sector to ensure legal compliance while protecting the privacy of adults wishing to view adult content. In the past, however, adult sites implementing AV solutions have seen up to a 60% drop in traffic as a result.

Gavin Worrall ·
opinion

Goodbye to Noncompete Agreements in the US?

A noncompetition agreement, also known as a noncompete clause or covenant not to compete, is a contract between an employer and an employee, or between two companies.

Corey D. Silverstein ·
opinion

The Search for Perfection in Your Payments Page

There has been a lot of talk about changes to cross sales and checkout pages. You have likely noticed that acquirers are now actively pushing back on allowing merchants to offer a negative option, upsell or any cross sales on payment pages.

Cathy Beardsley ·
Show More