21 articles Web Content Page 2 / 3

Information all about how pages are served and how page content is negotiated.

Enabling Google Analytics support

Overview Google Analytics is a free web analytics application provided by Google, including SEO recommendations and live site traffic. 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 is created, you will see sample code to insert:…

Creating a subdomain

Overview A subdomain is an extension of your primary domain or an addon domain that can serve as both an e-mail domain and website location. Creating a subdomain Configuration parameters A subdomain may be added within the control panel under Web > Subdomains. A subdomain may exist in a few flavors and likewise function differently: Subdomain…

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 usage. When is a manual…

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 domain name, rewrite rules will…

Accessing web page views and error messages

Site statistics can be viewed, in raw form, through access logs available via /var/log/httpd/access_log. Likewise, errors that may arise from improperly-configured PHP scripts or general diagnostics are available in error logs via /var/log/httpd/error_log. These errors are typically manifested as 550, 500, 403, or status codes also more commonly referred to as “Internal Server Error”. Java…

Subdomain fall-through behavior

Overview Subdomains created within the control panel via Web > Subdomains will map to corresponding document roots. Subdomains not explicitly defined under Web > Subdomains, called a fall-through, will always serve content from your primary domain located under /var/www/html. Example: assume web.mydomain.com maps to /var/www/web, and mydomain.com is the main domain that serves content from /var/www/html. “web” is the only subdomain associated with…