Both cases are not work/~\

Apache httpd.conf
1. how can i redirect XXX.com/ to XXX.com/homepage ??
....?
redirect permanent / https://XXX.com/homepage
...?
what else should i add for this statement?

2. and how can i redirect from http to https whenever users enter with http??
<directory C:/.......>
RewriteEnginee On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*) https://%{SERVER_NAME}/secure/$1 [L,R]
</directory>

these codes are tried but nothing can see. i am a new learner (only for one day) in apache, there are many things confusing me!!
thanks for ans!