LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so ServerName _ ServerAdmin webmaster@localhost DocumentRoot /var/www/html/ RewriteEngine On RewriteBase /var/www/html/api/public AllowOverride None Order Allow,Deny Allow from All FallbackResource /api/public/index.php AllowOverride None Order Allow,Deny Allow from All DirectoryIndex index.html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined