Forum

What is banshee and how to use it

Fred
8 December 2014, 13:22
Hi Hugo,

Could you please tell me what is the purpose the code bellow and how do we use it?
UrlToolkit {
ToolkitID = banshee
RequestURI isfile Return
Match ^/(css|files|images|js|slimstat)($|/) Return
Match ^/(favicon.ico|robots.txt|sitemap.xml)$ Return
Match .*\?(.*) Rewrite /index.php?$1
Match .* Rewrite /index.php
}


Hiawatha version: 9.8
Operating System: FreeBSd
Hugo Leisink
8 December 2014, 13:24
It's an URL rewrite routine used by Hiawatha. It allows you to use clean URLs for the Banshee PHP framework. Read this HOWTO for more information.
Fred
8 December 2014, 13:45
Do I need to install the Banshee PHP framework from http://www.banshee-php.org ?
Hugo Leisink
8 December 2014, 13:48
Uhh... only if you want to. What is it you seek?
Fred
8 December 2014, 13:52
I just want to know if I need to set it up or not..
In the sample config file, the code is commented...

Will I use it to rewrite non www to www?
Hugo Leisink
8 December 2014, 14:00
I don't quite understand what you are trying to tell / ask...

Hiawatha is a webserver. You can use it to serve websites to the internet. Banshee is a PHP framework, which you can use to create websites. One of the things Banshee needs is URL rewriting done by the webserver in order to have clean URLs. To make Hiawatha rewrite URLs the right way for Banshee, the UrlToolkit rule as mentioned in your first post is needed. Other webservers need other type of configuration to do URL rewriting. Other frameworks / CMSes need other rewrite rules than Banshee, as you can find in this HOWTO page.

Do you need to install Banshee? No, you are not required to do so. You can use it if you want to create a website, but you can also choose another one. If you don't understand what I'm saying here, ignore it, leave the UrlTookit rule commented (no problem if you uncomment it, it does nothing by itself) and play some more with Hiawatha first.
Fred
8 December 2014, 14:44
Hi Hugo,

Your last reply was really good thank you.
Basically as I am using Hiawatha to run my WordPress site and not to develop website, I will not need to use banshee..

Thank you for the quick reply:)
This topic has been closed.