How To Make Your WordPress Website Always Use HTTPS

If you had trouble making your website always use secure connection then do the following.

Only use this step if you already have https version of your website working.

Step 1. Test your site by changing http to https in the url.

If you do have https working then continue onto the next step.

Step 2. In your .htaccess (hidden) file in your root folder of your website add the following lines to the top of the file:

RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

Thanks to DreamHost Support for the assist.

How To Run Ionic Project On Heroku

You first have to install express server in your ionic project.

npm install express --save

Then create a server.js file:

var express = require('express'),

app = express();
app.use(express.static('www'));
app.set('port', process.env.PORT || 5000);

app.listen(app.get('port'), function () {
    console.log('Express server listening on port ' + app.get('port'));
});

Add an app.json file with some data

{
    "name": "app name",
    "description": "A simple Ionic app for Heroku",
    "logo": "http://pathToYourLogo.png",
    "keywords": ["ionic", "devdactic", "whatever"]
}

Then when you deploy your app to Heroku (preferably with dropbox) it will start as an express server.

Hiding IonicPopup Title Area

To hide the ionic popup title you have to add your own css.

.customPopup .popup-title{
    display: none;
}

create your popup from a url template:

  $ionicPopup.show({
      cssClass: 'customPopup',
      templateUrl: 'mypopup.html',
      scope: $scope,
      title: 'No title'
    });

How To Install Google Play Store On Amazon Fire Phone

Update your Amazon Fire Phone to the latest OS first.

Then install the following APPs in this particular order:

Google Now Launcher on Fire Phone

(I don’t recommend this because in my testing it reduced the battery life by a lot.)

If you want to install the google now launcher on amazon fire phone then you need to install the “Google App” first. Launch the app after install and click through the “Get Started” steps. It is important that you go through the Setup Steps in Google App.

Tip: Turn off the “Ok Google” in Google App Voice Settings because this is a battery drain on your phone.

Once you have the Google App running, go back to the play store and download “Google Now Launcher” After you install it make it your default launcher.

Now you can click and hold anywhere on the screen to set widget or change background wallpaper.