Category: advanced

Create a PHP file to display the date & time

To display the current server configured date and time on your web hosting account, you can place the following code listed below into a php file. <?php echo date(“l jS \of F Y h:i:s A”); ?> The above code will display the current date as configured in the format of: Day of the week Day

Continue reading…

How to force www or non-www versions of your website using .htaccess rules

To force your website to use either “www” or “non-www” versions, simply use the code below in your .htaccess file in the public_html root OR the location of your websites main files. You may need to create the .htaccess file (AKA dot htaccess) To force www: RewriteEngine On RewriteCond %{HTTP_HOST} ^yourdomain.com [NC] RewriteRule ^(.*)$ http://www.yourdomain.com/$1

Continue reading…

Change the PHP Timezone – shared & reseller web hosting

To change the timezone on your hosting account, you’ll first need to log into cPanel and locate the “Select PHP Version” option. Once you’ve clicked the “Select PHP Version” icon, you’ll see the PHP versions dashboard. NOTE: if yours shows “native” you will either need to select another PHP version OR contact our support. If

Continue reading…

403 Forbidden Error – What to do if you see this error

If you see a 403 Forbidden error on your website, you may need to check a few things. We’ll outline a few scenarios that would cause this and how to resolve them. .htaccess rules:   The most typical reason for a 403 Forbidden error is due to .htacess rules on your website. You’ll want to

Continue reading…

emails are sent from user@servername.com and not an actual email address

This is because our servers require you (or your script) to use a properly formatted, valid From: field in the email’s header. If the From: field is not formatted correctly, empty or the email address does not exist in the cPanel, the From: address will be changed to username@serverhostname.com You must change the script you

Continue reading…