Keywords: LAMP/MAMP/WAMP - Linux - Technical issue - Domain Name (DNS)
bnsupport ID: 5e6b5767-3311-059a-9a2f-b0ca3cba1cf0
Description:
## A little background
I'm working on a webpage but had some problems so I upgraded to a newer version of bitnami with this little tutorial https://community.bitnami.com/t/upgrade-to-the-latest-php-or-the-latest-lamp-stack-within-the-lightsail-aws-service/57019/2 .
That worked fine.
Also got ssl back up in no time with the redirect with htaccess.
The problem
Now there is a diffrence from before. Before there was no file extentensions in the url.
So I tried chaining it in htaccess BUT there is no diffrense if I put it
in /opt/bitnami/apache2/conf/bitnami/bitnami.conf
or /opt/bitnami/apache2/htdocs/.htaccess
Also tried changing the AllowOverride between All and None.
Complete htaccess configuration I want to use :
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteCond %{HTTPS} !=on
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L]
(The ssl part works.)
Been looking true countless of forum posts but no one seems to have the same problem...
Thnx in advance! 