________________ ____________ _______________________ ____ ___
/ ________/ / / / / \ / / ____ / ____ \/ / / /
/ /_______/ /___/ / / /\ \ / / / / / /___/ / / / /
/_______ / ___ / / / \ \ / / / / / ____ / / / /
________/ / / / / / / \ \/ / /___/ / /___/ / /___/ /
/___________/___/ /___/___/___/ \___/__________/__________/__________/ Version 0.2.4
Visit http://shinobu.61924.nl/ for more information.
# Installation
1. Rename sample.config.php to config.php in ./system/core.
2. Edit the settings in config.php.
3. Create a database.
4. Run install.php.
5. Remove install.php and htaccess.apache (if you don't use it).
6. Have fun.
# Url rewriting
## Nginx
rewrite ^(/)themes/(.*?)$ $1themes/$2 break;
rewrite ^(/)static/(.*?)$ $1static/$2 break;
if (!-e $request_filename) {
rewrite ^(/)$ $1index.php last;
rewrite ^(/)(.*?)$ $1index.php?q=$2 last;
}
location /admin/ {
rewrite ^(/admin/)themes/(.*?)$ $1themes/$2 break;
rewrite ^(/admin/)js/(.*?)$ $1js/$2 break;
if (!-e $request_filename) {
rewrite ^(/admin/)$ $1index.php last;
rewrite ^(/admin/)(.*?)$ $1index.php?q=$2 last;
}
}
## Lighttpd
url.rewrite-once = (
"^/admin/themes/(.*)$" => "/admin/themes/$1",
"^/admin/js/(.*)$" => "/admin/js/$1",
"^/admin/?$" => "/admin/index.php",
"^/admin/(.*)$" => "/admin/index.php?q=$1",
"^/themes/(.*)$" => "/themes/$1",
"^/static/(.*)$" => "/static/$1",
"^/?$" => "/index.php",
"^/([^?](.*?))$" => "/index.php?q=$1"
)
## Apache (.htaccess)
Rename "htaccess.apache" to ".htaccess" or create a new file with the following content.
Setup the correct path for the RewriteBase rule.
<IfModule mod_rewrite.c>
RewriteEngine on
# Path the shinobu fodler
# RewriteBase /path/to/shinobu/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^admin/(.*)$ admin/index.php?q=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ index.php?q=$1 [L]
</IfModule>