I just upgraded my HTTP to HTTPS through AWS(ACM) with ELB. My folder structure is like this,
htdocs-
-index.html
-myproject(laravel starts here)
-index.php
-folder(it contains config and all other folders)
Now without HTTPS Redirect code it works perfectly, but as soon as i add this code which is provided by AWS ACM my landing page comes perfectly but next route gives 404 error.
<VirtualHost *:80>
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule . https://%{HTTP:Host}%{REQUEST_URI} [L,R=permanent]
</VirtualHost>
My laravel webpage starts from,
https://www.spontieapp.com/mobile
my httpd.conf content is , https://pastebin.com/ArUDP6Xg
my .htaccess is , https://pastebin.com/wU72Zbau
.htaccess is present under /mobile folder
Please assist on resolving it . Thanks