nicholas icon indicating copy to clipboard operation
nicholas copied to clipboard

Doesn't Work on Localhost

Open teamayu opened this issue 3 years ago • 3 comments

Hi Adam,

Just trying out your blog system (well, trying to). Hopefully I can get it working.

I have it installed here: http://localhost/site/blog/

The config is: 'blog_url' => 'http://localhost/site/blog', 'base_url' => '/blog'

But when I launch all I see is "Oops, Error 404" at the following url: http://localhost/site/blog/

Any ideas? Thank you.

teamayu avatar May 25 '21 07:05 teamayu

Ok, the issue is with the AltoRouter class, so no problem. However, the system has so many security issues it's unstable to use. Like for example, loading files without checking if they are loading from the parent. Seriously? Schoolboy stuff. I'll find something better, thanks.

teamayu avatar May 25 '21 12:05 teamayu

Hi @teamayu, the base_url in your case should have been /site/blogI believe but I will do some testing using a plain localhost URL. Thank you for the feedback on security – if you could point me to any specific areas of concern or learning resources on that, I would appreciate the learning opportunity.

adamgreenough avatar May 25 '21 14:05 adamgreenough

remove this code $router->setBasePath($config['base_url']); in index.php should work fine

Iquaridys avatar Jun 20 '23 12:06 Iquaridys