Question: I am trying to always redirect people to 

```
https://www.somedomain.com/URL 

```

when they come in on a non secure port. This is because my SSL is for this url. 

When someone goes to <http://www.somedomain.com> they get sent to 

```
http://www.www.somedomain.com

```

Here is the htaccess rewrite that i am trying:

```
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://www.%{HTTP_HOST}%{REQUEST_URI}

```

Edit:

I am using a cPanel server, so making additional hosts is not going to work.

Answer: 
Make input type as number, since it is addition operation

```
<input type="text" ng-model="x" />
<input type="text" ng-model="y" />

```
To add two numbers together I would parse the string for Integers and check for null:

```
function TodoCtrl($scope) {
    $scope.total = function() {
        var firstNum = parseInt($scope.firstNum) 
        var secondNum = parseInt($scope.secondNum);

        if (!firstNum)
            firstNum = 0;
        if (!secondNum)
            secondNum = 0;

        return firstNum + secondNum;
    }
}

```