Options -MultiViews -Indexes
# www -> non-www redirection - start
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.iammgo\.com [NC]
RewriteRule ^(.*)$ https://iammgo.com/$1 [L,R=301]
# redirection - end
RewriteRule ^(.*)$ public/$1 [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Send Requests To front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
Header always unset X-Frame-Options
###Start Kloxo PHP config Area
### begin content - please not remove this line
#
# ## MR -- authentically for letsencrypt for webroot-based
# RewriteRule /\.|^\.(?!well-known/) - [F]
#
### MR -- using php version different with default php
### 1. Using suphp
### - Copy between '#' to '#' and
### then remove '#' from '#' and one of '#SetHandler'
#
#SetHandler x-httpd-php
#SetHandler x-httpd-php56
#SetHandler x-httpd-php73
#
### OR
### 2. Using fcgid
### - Copy from '#Options' to '#FCGIWrapper' and
### then remove '#' for one of '#FCGIWrapper'
#Options +ExecCGI
#
# SetHandler fcgid-script
#
#FCGIWrapper /usr/bin/php-cgi .php
#FCGIWrapper /usr/bin/php56m-cgi .php
#FCGIWrapper /usr/bin/php73m-cgi .php
### end content - please not remove this line
###End Kloxo PHP config Area