Images missing (not displayed) when mod_rewrite selected

Having trouble installing serendipity?
Post Reply
Sagari

Images missing (not displayed) when mod_rewrite selected

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Images missing (not displayed) when mod_rewrite selected

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Sagari

Post 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.
Sagari
Posts: 2
Joined: Tue Aug 09, 2005 5:29 am
Location: Novosibirsk, Russia
Contact:

Post 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).
Sagari
Posts: 2
Joined: Tue Aug 09, 2005 5:29 am
Location: Novosibirsk, Russia
Contact:

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Great you sorted it out already! Hope you'll have fun with Serendipity. :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Post by Guest »

Surely! I admire modular engines and Smarty...

Thank you very much for your work!
Post Reply