[SOLVED] counter is not working after chgancing some htacces file in other website

hello. i have my own dedicated webserver and piwik install on this site. everything is working fine and perfect.
i added another of my website. it was working PROPERLY. after they called me from google adwords. and told me that i should redirect http request to https in my site. i had chanced htacces code below ( This chanced had done not in installed piwik website. it had chanced in user website which just have piwik counter code’s site. )

RewriteCond %{HTTPS} off

First rewrite to HTTPS:

Don’t put www. here. If it is already there it will be included, if not

the subsequent rule will catch it.

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Now, rewrite any request to the wrong domain to use www.

RewriteCond %{HTTP_HOST} !^www.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

now i start to look counter but there is not showing any reports on this site. piwik installed websites and piwik working fine. why it could be is there any idea?

thanks.

SOLUTION:

when i remove the .htacces kod and in cpanel i redirect http://www.site.com to https://www.site.com WITH Wild Card Redirect
it is again working properly.

after they called me from google adwords. and told me that i should redirect http request to https

What do you mean by that?