Page 1 of 1

Images missing (not displayed) when mod_rewrite selected

Posted: Mon Aug 08, 2005 2:48 pm
by Sagari
Greetings,

After haveing installed the latest (0.8.3) version, in mod_rewrite mode, I have noticed that all the images (URI templates/*/*.gif etc) are not displayed.

Looks like the rewriting rules phase the images out. Have anyone encountered this behaviour and how can one eliminate this?

Thank you!

All the best,

Konstantin

Re: Images missing (not displayed) when mod_rewrite selected

Posted: Mon Aug 08, 2005 2:58 pm
by garvinhicking
Can you tell the URL of your blog? And can you pleast post your .htaccess file here? I've never seen that happen...

Regards,
Garvin

Posted: Tue Aug 09, 2005 5:27 am
by Sagari
Of course. The blog is:

http://ellana.info/

The .htaccess (generated by Serendipity installer) is

Code: Select all

# BEGIN s9y
ErrorDocument 404 /index.php
DirectoryIndex /index.php

RewriteEngine On
RewriteBase /
RewriteRule ^archives([/A-Za-z0-9]+)\.html index.php?url=/archives/$1.html [L,QSA]
RewriteRule ^([0-9]+)[_\-][0-9a-z_\-]*\.html index.php?url=$1-article.html [L,NC,QSA]
RewriteRule ^feeds/(.*) index.php?url=/feeds/$1 [L,QSA]
RewriteRule ^unsubscribe/(.*)/([0-9]+) index.php?url=/unsubscribe/$1/$2 [L,QSA]
RewriteRule ^approve/(.*)/(.*)/([0-9]+) index.php?url=approve/$1/$2/$3 [L,QSA]
RewriteRule ^delete/(.*)/(.*)/([0-9]+) index.php?url=delete/$1/$2/$3 [L,QSA]
RewriteRule ^(admin|entries)(/.+)? index.php?url=admin/ [L,QSA]
RewriteRule ^archive$ index.php?url=/archive [L,QSA]
RewriteRule ^categories/([0-9]+) index.php?url=/categories/$1 [L,QSA]
RewriteRule ^(index|atom|rss|b2rss|b2rdf).(rss|rdf|rss2|xml)$ rss.php?file=$1&ext=$2
RewriteRule ^plugin/(.*) index.php?url=plugin/$1 [L,QSA]
RewriteRule ^search/(.*) index.php?url=/search/$1 [L,QSA]
RewriteRule ^(serendipity\.css|serendipity_admin\.css) index.php?url=/$1 [L,QSA]
RewriteRule ^authors/([0-9]+) index.php?url=/authors/$1 [L,QSA]
RewriteRule ^index\.(html?|php.+) index.php?url=index.html [L,QSA]
RewriteRule ^htmlarea/(.*) htmlarea/$1 [L,QSA]
RewriteRule (.*\.html?) index.php?url=/$1 [L,QSA]

<Files *.tpl>
    deny from all
</Files>

<Files *.sql>
    deny from all
</Files>

<Files *.inc.php>
    deny from all
</Files>

<Files *.db>
    deny from all
</Files>

# END s9y

I haven't changed it. The Serendipity was unpacked into Web root (~/public_html) and installed from there.

Posted: Tue Aug 09, 2005 5:33 am
by Sagari
I have decided it would be the best to register here.

The details I didn't mention: PHP is run in CGI mode, mod_rewrite mode is used (it is clear, of course, from the contents of .htaccess). iconv isn't available, the rest of Serendipity recommendations are met.

PHP version is 4.3.11.

I can send you the URL of phpinfo() script, if necessary (by PM, if I may, to avoid the abuse).

Posted: Tue Aug 09, 2005 9:45 am
by Sagari
It seems the problem is with file permissions (say, bit 'x' set for graphics files). I will re-install the Serendipity and report whether there are errors.

Indeed, when the permissions have been reset, the problem was gone.

Sorry for the false alarm.

Posted: Tue Aug 09, 2005 2:36 pm
by garvinhicking
Great you sorted it out already! Hope you'll have fun with Serendipity. :)

Regards,
Garvin

Posted: Tue Aug 09, 2005 3:23 pm
by Guest
Surely! I admire modular engines and Smarty...

Thank you very much for your work!