I'm using the Slim PHP framework. Here's the .htacces that comes with the framework.

RewriteEngine On

# Some hosts may require you to use the `RewriteBase` directive.
# If you need to use the `RewriteBase` directive, it should be the
# absolute physical path to the directory that contains this htaccess file.
# RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
I would lik to do two things:

a) Redirect all HTTP requests to their HTTPS counterparts.
b) Point to an index.php file that is located in an "application" folder.

Here's what I came up with (not working):

RewriteRule ^https:\/\/.*/application/index.php [QSA,L]

Thanks in advance.