When your full domain, www.example.com, has a 301 (or 302) redirect to your bare domain,example.com, customers who try to access www.example.com will instead load example.com, bypassing Fasterize and going directly to your servers.

As a result, none of your pages are optimized by Fasterize (because they are loading example.com via your servers). To receive the benefits of Fasterize, you must remove the 301 redirect from your full domain to your bare domain.

Here are some tips to remove the redirect in common web hosting software:

  • Apache: Open your .htaccess file, and search for the string “301”. Delete the corresponding line after you have verified that it is the correct line.
  • WordPress: If you have a redirection plugin, please consult the instructions associated with your plugin. Otherwise, open your .htaccess file, and search for the string “301”. Delete the corresponding line after you have verified that it is the correct line.
  • PHP: Search and remove the following lines from your code base:
    Header ("HTTP/1.1 301 Moved Permanently");
    Header ("Location: http://example.com");

    Note: Replace http://example.com with your domain.

  • IIS: In Internet Services Manager, right click on the file or folder for your full domain. Select the radio titled “A directory located on this computer”

On the contrary, if you would like to guarantee the benefits of Fasterize for all your website visitors, we recommend you set up a 301 redirect from your bare domain to your full domain.