I have developed an application using Laravel 5.2, I want to run my routes with HTTPS. I have tried with .htaccess its running properly but I don't want to do with .htaccess because I have created a sub-domain on same server and point sub-domain to a folder.
Here is my .htaccess code:
RewriteEngine On
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
The Main Issue which I am facing is, with .htaccess redirects to HTTPS and my sub-domain folder is not accessible because .htaccess is redirecting everything to HTTPS.