RewriteEngine On
RewriteBase /blog/
RewriteRule ^(app|dict|ns|tmp)\/|\.ini$ - [R=404]
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* /blog/index.php [L,QSA]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
In case you just put your fat-free project into a sub-folder of an existing document root, some Apache configurations possibly need a defined RewriteBase
as well in your .htaccess
file. If the app is not working, or the default route /
works, but /test
maybe fails, try to add the base path:
RewriteEngine On
RewriteBase /fatfree-project/
Hello! I'm having the same issue... but the problem is that when you use the ALIAS of routes it goes to root directory:i.e. $f3->route('GET @install: /install', 'system\installer->wizard');
<form action="{{ 'install' | alias }}" method="POST" name='installform' id='installform'>
On Thursday, September 5, 2019 at 10:46:50 PM UTC+1, dyslexicDrakness wrote:Hello! I'm having the same issue... but the problem is that when you use the ALIAS of routes it goes to root directory:i.e. $f3->route('GET @install: /install', 'system\installer->wizard');Either$f3->route('GET @install: '.$f3->get('BASE').'/install', 'system\installer->wizard');<form action="{{ 'install' | alias }}" method="POST" name='installform' id='installform'>Or<form action="{{@BASE}}/{{ 'install' | alias }}" method="POST" name='installform' id='installform'>