• I need to restart the web server…

    Overview During certain situations you may become confused with what is wrong with your site. For example, moving WordPress or Drupal to another location or even misplacing files on your web site may lead to an erroneous conclusion that the web server must be “restarted” to clean its cache or memory…

  • Enabling Google Analytics support

    Overview Google Analytics is a free web analytics application provided by Google, including SEO recommendations and live site traffic. Sample Google Analytics dashboard Setting up GA Google Analytics can be enabled on newer, v5+ platforms using two lines in a .htaccess file. Visit Google Analytics to create a profile for the domain Once the profile…

  • Disabling PageSpeed

    Overview In rare certain situations, PageSpeed may make debugging a staging site more difficult or interfere with custom JavaScript that manipulates the DOM in a HEAD tag. Although likely unnecessary to disable, PageSpeed may be disabled on your site with a simple htaccess directive: Create a file named .htaccess in…

  • Where is site content served from?

    Site content for a given domain or subdomain is served from its document root. A document root is the base folder from which all content is served. All accounts have a document root for the primary domain under /var/www/html. mainwebsite_html/ is a link to this location.    Sample Home Directory $ ls ~…

  • Changing index pages

    Overview An index page is the page a Web server pulls up for a given directory if a filename is not specified. For example, http://yourdomain.com/ will scan the document root sequentially looking for the first file match. If found, that page will be displayed. By default, the directory index order…

  • Rewrite rules fail on subdirectories, subdomains, or addon domains

    Overview Rewrite rules remap a URL to another location or resource accessible on a web site. These rules are located in .htaccess files. A common snippet looks similar to: RewriteEngine On RewriteCond %{REQUEST_FILENAME} ! -f RewriteRule ^(.*)$ index.php [QSA, L] When located anywhere else besides the document root of the primary…

  • Redirects with mod_rewrite

    Overview A redirect changes the URL, in browser, from one URL to another. A variety of redirect codes exist to force a variety of behaviors in the browser (or spider). Usage All redirects are controlled through a .htaccess file in the document root of your target domain or subdomain. The…

  • Forwarding a web site elsewhere

    Overview A forwarded website can be accomplished by first creating a subdomain or addon domain in the control panel, then using an .htaccess in document root to redirect all traffic to the new web site using mod_rewrite. Important terminology Forwarded domain: domain that will redirect to the target domain Target domain: domain…

  • Expunging PageSpeed cache

    PageSpeed will make a best effort to expire its asset (.css, .js, .png, .gif, .jpg) cache periodically. During periods of rapid changes, automatic expunction may lag behind changes pushed to a server necessitating a manual flush of the cache. Expunging PageSpeed cache A PURGE header may be sent to the asset…

  • PageSpeed support

    Overview PageSpeed (mod_pagespeed) optimizes your site and makes content load more quickly. PageSpeed applies a variety of filters including minifying scripts, inlining CSS, and automatically deferring JavaScript to avoid blocking DOM rendering. Users can browse your site with less latency, and in turn, improve visitor engagement. Availability PageSpeed is available on all v5+…