Broken rewritten image paths in 0.13b4
Posted: Tue May 16, 2006 9:30 pm
I can upload images no problem, they appear correctly in content chunks when using FCKEditor, but when they're viewed on my site, the images are broken. I'd guess it's a problem with mod_rewrite (which I am using) config.
A path to a typical image (a broken one) might be:
http://www.example.com/index.php/upload ... yimage.jpg
In the editor, this appears as 'uploads/images/myimage.jpg', so the relative path is right - mod_rewrite must be getting the root wrong.
And I can confirm that the really is an image called myimage.jpg in uploads/images.
Incidentally, is there any particular reason to retain the index.php in the rewritten URL? As far as I'm concerned, the main point of rewriting URLs is to remove such syntax.
A path to a typical image (a broken one) might be:
http://www.example.com/index.php/upload ... yimage.jpg
In the editor, this appears as 'uploads/images/myimage.jpg', so the relative path is right - mod_rewrite must be getting the root wrong.
And I can confirm that the really is an image called myimage.jpg in uploads/images.
Incidentally, is there any particular reason to retain the index.php in the rewritten URL? As far as I'm concerned, the main point of rewriting URLs is to remove such syntax.