• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Images Not Found

Status
Not open for further replies.

fattony69

Chevereto Member
Hey, I am using 2.5 and it seems like many of my images are in the old folder. Although, when I try to access them using old links such as:
Code:
http://theimageigloo.com/images/10489072_hp.jpg
Instead of:
Code:
http://theimageigloo.com/images/old/10489072_hp.jpg
I get my 404 image.

My htaccess looks like this:
Code:
# Disable server signature
ServerSignature Off
 
# Disable directory listing (-indexes), Multiviews (-MultiViews) and enable Follow system links (+FollowSymLinks)
Options -Indexes
Options -MultiViews
Options +FollowSymLinks
 
# Turn on mod_rewrite
RewriteEngine On
 
# If you have problems with the rewrite rules remove the "#" from the following RewriteBase line
# You will also have to change the path to reflect the path to your Chevereto installation
#RewriteBase /tbfe
 
# The /api rewrite
RewriteRule ^api$ api.php [L]
 
# If you want to have your own fancy "image not found" image remove the "#" from RewriteCond and RewriteRule lines
# Make sure to apply the correct paths to reflect your current installation
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule images/.+\.(gif|jpe?g|png|bmp) content/system/img/404.gif [NC,L]
 
RewriteRule images/([a-zA-Z0-9]+\.)(jpg|png|gif)$ images/old/$1$2 [L] #legacy images
RewriteRule images/([a-zA-Z0-9]+\.)(jpg|png|gif)$ images/old/$1th.$2 [L] #legacy thumbs
 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\.([a-z]{1,4})$ [NC]
RewriteRule . index.php [L]

How can I fix this?
 
Try this ;)

Code:
# Disable server signature
ServerSignature Off
 
# Disable directory listing (-indexes), Multiviews (-MultiViews) and enable Follow system links (+FollowSymLinks)
Options -Indexes
Options -MultiViews
Options +FollowSymLinks
 
# Turn on mod_rewrite
RewriteEngine On
 
# If you have problems with the rewrite rules remove the "#" from the following RewriteBase line
# You will also have to change the path to reflect the path to your Chevereto installation
#RewriteBase /tbfe
 
# The /api rewrite
RewriteRule ^api$ api.php [L]
 
RewriteRule images/([a-zA-Z0-9]+\.)(jpg|png|gif)$ images/old/$1$2 [L] #legacy images
RewriteRule images/([a-zA-Z0-9]+\.)(jpg|png|gif)$ images/old/$1th.$2 [L] #legacy thumbs
 
# If you want to have your own fancy "image not found" image remove the "#" from RewriteCond and RewriteRule lines
# Make sure to apply the correct paths to reflect your current installation
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule images/.+\.(gif|jpe?g|png|bmp) content/system/img/404.gif [NC,L]
 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\.([a-z]{1,4})$ [NC]
RewriteRule . index.php [L]
 
Try this ;)

Code:
# Disable server signature
ServerSignature Off
 
# Disable directory listing (-indexes), Multiviews (-MultiViews) and enable Follow system links (+FollowSymLinks)
Options -Indexes
Options -MultiViews
Options +FollowSymLinks
 
# Turn on mod_rewrite
RewriteEngine On
 
# If you have problems with the rewrite rules remove the "#" from the following RewriteBase line
# You will also have to change the path to reflect the path to your Chevereto installation
#RewriteBase /tbfe
 
# The /api rewrite
RewriteRule ^api$ api.php [L]
 
RewriteRule images/([a-zA-Z0-9]+\.)(jpg|png|gif)$ images/old/$1$2 [L] #legacy images
RewriteRule images/([a-zA-Z0-9]+\.)(jpg|png|gif)$ images/old/$1th.$2 [L] #legacy thumbs
 
# If you want to have your own fancy "image not found" image remove the "#" from RewriteCond and RewriteRule lines
# Make sure to apply the correct paths to reflect your current installation
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule images/.+\.(gif|jpe?g|png|bmp) content/system/img/404.gif [NC,L]
 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\.([a-z]{1,4})$ [NC]
RewriteRule . index.php [L]
I changed it. Nothing changed. It didn't work.
 
Sorry, use this ones:
Code:
RewriteRule images/([a-zA-Z0-9_-]+\.)(jpg|png|gif)$ images/old/$1$2 [L] #legacy images
RewriteRule images/thumbs/([a-zA-Z0-9_-]+\.)(jpg|png|gif)$ images/old/$1th.$2 [L] #legacy thumbs

Instead of this:
Code:
RewriteRule images/([a-zA-Z0-9]+\.)(jpg|png|gif)$ images/old/$1$2 [L] #legacy images
RewriteRule images/([a-zA-Z0-9]+\.)(jpg|png|gif)$ images/old/$1th.$2 [L] #legacy thumbs
 
Sorry, use this ones:
Code:
RewriteRule images/([a-zA-Z0-9_-]+\.)(jpg|png|gif)$ images/old/$1$2 [L] #legacy images
RewriteRule images/thumbs/([a-zA-Z0-9_-]+\.)(jpg|png|gif)$ images/old/$1th.$2 [L] #legacy thumbs

Instead of this:
Code:
RewriteRule images/([a-zA-Z0-9]+\.)(jpg|png|gif)$ images/old/$1$2 [L] #legacy images
RewriteRule images/([a-zA-Z0-9]+\.)(jpg|png|gif)$ images/old/$1th.$2 [L] #legacy thumbs
I just changed it and it still doesn't worked. :(
 
Status
Not open for further replies.
Back
Top