Testing
1. Mode_Rewrite
I used default settings
original .htaccess from R5.5 untouched
- XAMPP deployed under
/opt/lampp/
- httpd.conf
LoadModule rewrite_module modules/mod_rewrite.so
(see /opt/lampp/etc/httpd.conf) - wacko config
'base_url' => 'http://localhost/git/wackowiki/wacko/',
1.1. ON
LoadModule rewrite_module modules/mod_rewrite.so
http://localhost/git/wackowiki/wacko/RecentlyCommented
1.2. OFF
1.2.1. Site
#LoadModule rewrite_module modules/mod_rewrite.so
http://localhost/git/wackowiki/wacko/?page=RecentlyCommented
Works out of the box here!
Please check your settings, it should work without 'index.php/'
Hint: You can't turn off the usage of mode_rewrite in the wacko config,
when the Settings class detects mode_rewrite is available, it will be turned ON
// if .htaccess tell us actual info on mod_rewrite status - use it if (getenv('HTTP_MOD_ENV') === 'on') { $this->rewrite_mode = (getenv('HTTP_MOD_REWRITE') === 'on'); }
In other words, it should work with unchanged base_url and appends
'?page=RecentlyCommented
' if mode_rewrite is OFF.
1.2.2. Admin panel
#LoadModule rewrite_module modules/mod_rewrite.so
http://localhost/git/wackowiki/wacko/admin.php
result -> 404
I got a 404. Seems there is a missing case / condition for routing admin.php
with _rewrite==0
in router.conf.
router.conf
`^admin\.php$` _ok! route=admin
index.php
case 'admin': $config = & $db; include 'admin/admin.php'; break;
Does someone see what's missing?
wacko/admin/style/backend.css
gets routed
SOLUTION: /?page=admin.php
1.2.3. Installer
-> OK