Htaccess directives are processed top down. So if you put the http to https and removing the www at the top then they will be processed and returned first.
Since that’s the most common change I tend to put those near the top.
There’s three basic ways to do redirects within Apache’s htaccess file.
The most complicated and most flexible is the rewrite condition/rewrite rule set like being used by the http to https set. That single set also removes the WWW.
Redirect Directive
The easiest way to do a redirect is the simple redirect statement.
Redirect 302 "/old-path" "/new-path"
That works great if the old-path is simple and should work for most redirects.
RedirectMatch Directive
The second way to perform a redirect is to use the redrectMatch. This allows you to do much more complicated redirects by using regex(regular expressions to match the URL and variable insertion.
RedirectMatch 301 "(.*)\.pdf$" "$1.html"
The above example will create a 301 redirect for all PDF documents to an HTML document with the same path and filename on the host
This would be the second most used type of redirect. You will need to have an understanding of regular expressions (regex).
mod_rewrite -RewriteCond/RewriteRule
This is the 3rd way to do redrects. It’s the most flexible but most complicated way. You’ll need a vary good understanding of regex as well as some understanding of Apache.
You can have multiple RewriteCond‘s with and/or logic for each RewriteRule.
sequence Of redirects
The sequence doesn’t matter much other than to remember that it’s top down so if you do something that changes the URL near the top, the change will be done prior to the next directives.
As for blank lines I don’t use them. However you can add comments to the htaccess file by starting them with a #
# this is a comment
#
Redirect 302 "/old-path" "/new-path"
If you want to give some real examples of what URL’s you’re looking to redirect I’d be happy to give you some live examples. It’s difficult when you are talking in hypothetical names.