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: 
That is because the concatenation has higher precedence over addition operation or the Plus (+) Operator.
Since, Minus Operator (-) works just fine , here is a Simple Hack!

```
<script type="text/javascript">
    function TodoCtrl($scope) {
        $scope.total = function () {
            //Subtracting a Zero converts the input to an integer number
            return (($scope.x - 0) + ($scope.y - 0));
        };

    }
</script>

```

You could as well do this:

```
<form>
    <li>Number 1: <input type="text" ng-model="x" /> </li>
    <li>Number 2: <input type="text" ng-model="y" /> </li>
    <li>Total <input type="text" value="{{(x-0) + (y-0)}}"/></li>       
</form>

```
I advise you to change the type of your input to "number", then, you will not need to parse it, angular will convert it automatically to interger. I did it and it works, without a scope, but only to declare your {{total}}