Banshee
the secure PHP framework

Forum

xamp

Pam
13 july 2020, 11:48
How do I get banshee to work on xamp so that the link is

localhost/banshee not localhost
Hugo Leisink
13 july 2020, 23:05
Banshee was not designed for that, but it can be done via URL rewriting. Rewrite URLs starting with /banshee to /banshee/public.
Pam
14 july 2020, 10:59
I tried this yesterday

<IfModule rewrite_module>
RewriteEngine On
RewriteBase /
RewriteRule (.*) /banshee/public/$1 [QSA]
</IfModule>



But it didn't work
Pam
14 july 2020, 11:03
Everything just goes to http://localhost/dashboard/
Hugo Leisink
14 july 2020, 13:08
In the banshee directory, there already is an .htaccess file which contains rewrite rules. I wrote those a long time ago. If nothing big has changed in Apache according to rewrite rules, it should work. Just allow the reading of .htaccess files.

I don't use Apache, so I'm not an expert in Apache rewrite rules. So, can't help you with any details.
Pam
15 july 2020, 14:19
<IfModule rewrite_module>
RewriteEngine On
RewriteBase /
RewriteRule (.*) /public/$1 [QSA]
</IfModule>


Is what you had so I added banshee/ which I thought would have worked but htaccess isn't my thing either. There is a htaccess under public as well. Do I need to change that? I did try and change it but it didn't do anything
Pam
15 july 2020, 14:26
It seems to thing the host is http://localhost/ not http://localhost/banshee/


If I go to
http://localhost/banshee/


I get


Error
error
The requested page could not be found.

If you believe this is due to a bug in this website, please notify the webmaster. Click here to return to the homepage.

Built upon the Banshee PHP framework v7.0

And all the links are localhost not localhost/banshee

It is something to do with the routing. I stehre anythign else taht affect the routing other than the htaccess? I can spot anything




Hugo Leisink
15 july 2020, 15:11
As I said before, I'm no Apache expert. I got it working with the .htaccess files which are shipped with Banshee. That's all I have to offer.
Message preview

The following BB-codes are available in a message:

  • [b]Bold text[/b]
  • [center]Center text or imagen[/center]
  • [color=color name or #RGB code]Colored text[/color]
  • [i]Italic text[/i]
  • [img]Link to image[/img]
  • [right]Align text or image right[/right]
  • [s]Strike-through text[/s]
  • [size=pixelsize]Big or small text[/size]
  • [u]Underlined text[/u]
  • [url]Link to website[/url]
  • [url=link to website]Link text[/url]