Redirect a web site

I have a simple HTML web site that I have added an SSL certificate. I have added the following code to the .htaccess file with my domain name.


RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(www\.)?coolexample\.com
RewriteRule ^(.*)$$1 [R,L]


The code does redirect to a simple page that has a link to the web site. My question is, will this change over time and go right to the site or is there something else I have to code to get the redirect right to my website? Also, do I need to set the R to R=301?


If anyone can help, I would appreciate it.

Thank you,