Automatically Redirect All WWW to Non-WWW for Multiple Domains

This guide is for how to automatically remove www from a domain name, or multiple domain names.
If you want to add WWW, read this guide titled Automatically redirect non-www requests to www for all URLs and All Domains.

The below code will enable you to remove WWW for one domain, multiple domains, or all domains. It is generic enough that you just install it in your domains root folder for a singular domain, or the parent folder above multiple domain names if you want it to apply to all domains hosted in child folders (for shared hosting scenarios).

Insert the below code into a text file. Save the file as htaccess.txt, and upload it to your domains folder. Once there, rename it to “.htaccess” without quotes. If you need help on this, read the applicable instructions in my other post Automatically redirect non-www requests to www for all URLs and All Domains.

Options +FollowSymlinks
RewriteEngine On

RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

Adobe Flash Player for Mozilla FireFox Does Not Send Referrers

Flash falls flat on it's face in Mozilla FirefoxAdobe Flash Player addon for Mozilla Firefox does not send HTTP referrers.

This is a public notification for web developers, something I discovered, tested and confirmed across multiple platforms and reproduced multiple times.

Behavior Observed: Adobe Flash Player addon for Mozilla Firefox does not send HTTP referrers.
This was discovered when Continue Reading

Restarting Apache without killing active connections

Changes to Apache web server’s configuration typically warrant a necessary immediate restart of the Apache. This is necessary in order for the new configuration changes to take effect due to the way Apace loads configuration settings at start-up.

Examples of changes which would warrant a restart in order to take immediate effect would be changing (adding or removing) an IP address, modifying the maximum connections limit, installing or uninstalling module files, changing virtual host configurations, and the list goes on, etc.

What is a Graceful Restart, and Why Bother Restarting Apache Gracefully?

Chances are you are already aware that the above situations would require a restart of Apache. The question that needs to be answered is “Why restart with the graceful command rather than the standard restart command. Continue Reading

Escaping forced IFRAME ads from your Webhost with JavaScript

Are you irritated by those forced advertisements placed through IFRAMEs on your free web space from your host? In this guide, I will show you how to escape the IFRAMEs used when masking / redirecting to your destination address.

These ads are displayed at the top of a forced IFRAME , with the main content being forwarded to the clients destination, all while remaining nested inside the parent frame so as to keep the main ad in the main frame on display through out the user’s entire browsing session.

Using the following JavaScript will help you get your content forwarded first, and then exit the forced ad’s by reloading itself without the IFRAME, thus no more IFRAME advertisements. Continue Reading

Automatically redirect non-www requests to www for all URLs and All Domains

Redirecting non-www to www for ALL of your domains.

This guide will quickly go over why you should not use both www and non www versions of your domain, but choose only one, and how this affects your search engine rankings for Google.

Why you should only have www or non www, but not both for your website and it’s search engine optimization.

Many people have made their website accessible both through http://www.domain.com as well as just http://domain.com. This is not generally a good idea for your SEO (search engine optimization). You’re asking “Why?”, and I will explain. Google “king of search engines” and the only search engine that really should be important to you, treats subdomains as separate domains than the main domain.

In Google’s eyes; www.domain.com, domain.com are separate websites. If you are thinking “Great! My website is then going to be listed twice at Google!”, you will now need to reconsider, Continue Reading