Options -MultiViews -Indexes
# non-www -> www redirection - start
RewriteEngine On
RewriteCond %{HTTP_HOST} ^kbgolf\.co.kr [NC]
RewriteRule ^(.*)$ https://www.kbgolf.co.kr/$1 [L,R=301]
# not-HTTPS -> HTTPS redirection (optional)
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# redirection - end
RewriteEngine On
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-php54
#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/php54m-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