• 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.

short link after upgrade 2 > 3

Status
Not open for further replies.
Old links will keep working but they won't be used by the system.
 
Old links not working, they redirected to main page.

I looked at the code in loader.php and made some changes

before:
PHP:
                    if($image) {
                        G\redirect($image['url_viewer'], 301);
                    }

after:
PHP:
          if($image) {
             $image['url_viewer'] = G\get_base_url('image/'.cheveretoID($image['image_id'], "encode"));
             G\redirect($image['url_viewer'], 301);
           }


And only after that links works properly
 
Keep the old code and change this:
PHP:
$image = Image::getSingle($image_id);

To this:
PHP:
$image = Image::getSingle($image_id, false, true);
 
Hi, how can i change the short url, too a Url with the image name for better seo?
You can't, and the SEO improvement of that is null. Just look youtube.

By the way, next time open a new topic for your inquires. Thanks.
 
Status
Not open for further replies.
Back
Top