- Created .htaccess for URL rewriting to route all requests to index.php - Added index.php to bootstrap the KrothiumAPI with environment variables and configuration settings - Configured application mode, paths, router settings, session management, error logging, and logging driver
9 lines
237 B
ApacheConf
9 lines
237 B
ApacheConf
<IfModule mod_rewrite.c>
|
|
RewriteEngine On
|
|
|
|
# Se já estiver na pasta public, não reescreve novamente
|
|
RewriteRule ^public(/.*)?$ - [L]
|
|
|
|
# Reescreve tudo para a pasta public
|
|
RewriteRule ^(.*)$ public/$1 [L]
|
|
</IfModule> |