mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Fix default news route if friendly_urls is disabled
This commit is contained in:
parent
e9df9f10dc
commit
c3969364aa
@ -10,7 +10,7 @@
|
||||
defined('MYAAC') or die('Direct access not allowed!');
|
||||
|
||||
return [
|
||||
['GET', '', '__redirect__/news'], // redirect empty URL to news
|
||||
['GET', '', '__redirect__/' . (config('friendly_urls') ? '' : 'index.php/') . 'news'], // redirect empty URL to news
|
||||
['GET', 'news/archive/{id:int}[/]', 'news/archive.php'],
|
||||
|
||||
// block access to some files
|
||||
|
Loading…
x
Reference in New Issue
Block a user