• 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.
    • We recommend purchasing a Chevereto license to participate in this community.
    • Purchase a Community Subscription to get even faster ticket response times.

Old Images are not redirecting

Status
Not open for further replies.

ludo8

Chevereto Member
Hello, first I had Http Error 401, searched your forum and found solution. Now I realize none of my old image links are working. It is not redirecting to images/old. Here is my .htaccess

Code:
ServerSignature Off
Options -Indexes -MultiViews
 
Options +FollowSymLinks
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 /
 
RewriteRule ^api$ api.php [L]
RewriteRule ^admin/(.*) admin/index.php [L]
RewriteRule ^images/(\w*\.)(jpg|png|gif)$ images/old/$1$2 [L] #legacy images
RewriteRule ^images/thumbs/(\w*\.)(jpg|png|gif)$ images/old/$1th.$2 [L] #legacy thumbs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
 
ErrorDocument 400 default
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default
 
 
# password protect single file
<IfModule mod_auth.c>
<Files "index.php">
AuthName "Please Log In - (IP Logged)"
AuthUserFile "/home/yunoimg/.htpasswd"
AuthType Basic
require valid-user
</Files>
</IfModule>
 
#Satisfy Any
#Allow from all

I have tried Rewritebase with the # before and removed the #, no difference. Admin page works, so is the rewrite for images/old missing something?

Example image link:
http://yunoimg.com/images/old/sample.jpg - works
http://yunoimg.com/images/sample.jpg - does not work (websites are linking to these)
 
Problem is that you have additional rules on the image dir. Of course you can have this additional rules but you must be aware that doing something like that could wipe out the root .htaccess rules

The solution was add the redwriterules in the .htaccess that you got on the image folder.
 
Status
Not open for further replies.
Back
Top