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: 
You want this:

```
   return parseFloat($scope.x) + parseFloat($scope.y);

```

`+` overrides string concatenation when you have 2 strings. You'll need to cast them to integers or floats explicitly. `-`,`*`,`/` will all cast to numbers if possible.
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}}