• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

Moved Images?

Status
Not open for further replies.

sp3ctr3

Chevereto Member
I did a bit of searching, but either I'm searching the wrong things, or doing something wrong.

If I moved my "images" folder to say "img", how would users who are still using the old path be updated?

So if someone is using "http://www.imgsite.com/images/38fhs.jpg" and I moved the folder to "img", how would they still be able to use the old link without it saying that the image is not there and automatically show the new path?

I'm assuming a ".htaccess" edit?
 
You should rename the folder and then make a .htaccess rule to preserve the /oldfolder with a rewrite rule to /newfolder.
 
Rodolfo said:
You should rename the folder and then make a .htaccess rule to preserve the /oldfolder with a rewrite rule to /newfolder.

Yeah, but what is the .htaccess rule or what should I put? I did search and tried some things, but like I said, either I'm Googling the wrong terms, or I'm just plain doing it wrong.
 
I think I got it. Just added the following to the root .htaccess file.

Code:
RedirectMatch 301 /images/(.*) /NEWIMAGESFOLDERNAME/$1
RedirectMatch 301 /NEWIMAGESFOLDERNAME/thumbs/(.*) /NEWIMAGESFOLDERNAME/NEWTHUMBSFOLDERNAME/$1

And change the settings in config.php.
 
Status
Not open for further replies.
Back
Top