folderblog
What is folderblog?
Folderblog is a free PHP script that automatically displays the images placed in a given directory, no database needed. It can be used as a blog or gallery — and anything in between.

» demo blog   » learn more   » download now

Discussion
404 Not Found(back to index)
Hi,

I downloaded the latest beta of FB3 and installed it first to my Windows XP machive, running Apache and PHP. Everything works fine. I added some pictures and customized the layouts a bit.

Then I moved the whole thing to my hosting service. The main page works nicely (meaning that PHP is working fine), but after that, everything else throws "404 Not Found" error. "The requested URL ... was not found on this server." It seems that my hosting service's web server doesn't see parameters after "fb.php" as parameters, but instead as sub-directories...?

According the error message they are running Apache 2.0.45 on Unix and PHP 4.3.10.

Any suggestions how to either ask them to configure their servers or how to configure Folderblog?

BR, Sampo!

posted by Sampo on 22 Jul 05 at 3:23 PM
Sampo, set $use_alt_url in fb_settings.php to 1.
posted by donald on 23 Jul 05 at 3:28 AM
Thanks! That did the trick.

Are you using URL rewriting (mod_rewrite?) with your demo blog? Or how did you get the URL to look like that? Do you have an example of that somewhere?
posted by Sampo on 23 Jul 05 at 5:08 AM
The demo blog uses this .htaccess:
 
# Start folderblog redirecting
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_URI} !/$
RewriteRule ^.*$ %{REQUEST_URI}/ [R,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d [OR]
RewriteCond %{REQUEST_FILENAME} /preview$
RewriteRule ^(.*)$ fb.php?p=$1
#End
(Where "/preview" is the folderblog directory and fb.php is the filename.)
posted by donald on 23 Jul 05 at 3:01 PM
Post a Reply:

Name:    Remember me
URL:    
(include http:// or mailto:)
(back to index)