I am really struggling to understand how I can use htaccess / rewrite to change a url in the form www.domain.com/home/ to www.domain.com/index.php?route=home. I thought I cracked it, but the url shown in the browser also changed to show the query string. I wanted the displayed url to change along with rewrite.
I also wanted to redirect http to https. I see other websites achieve this (stackoverflow for example).
My current attempt is:
RewriteRule ^/?(\w*?)/?$ https://www.%{HTTP_HOST}/index.php?route=$1 [R=301,NC,L]