# ----------------------------------------------------------------------
# CodeIgniter 4 - Project root
# ----------------------------------------------------------------------
# Routes all requests into the public/ folder so URLs do not need
# /public or /index.php when the vhost document root is this project.
#
# Example working URL:
#   http://14.139.92.12/dlrl_koha_api/api/patron/view
# ----------------------------------------------------------------------

<IfModule mod_rewrite.c>
	RewriteEngine On

	# If the request is already under /public, do not loop
	RewriteRule ^(public/) - [L]

	# Send everything else to public/
	RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

DirectoryIndex public/index.php
