Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2012
    Posts
    12
    Plugin Contributions
    0

    Default Changing the Image Directory

    I am after some assistance with changing my image folder.

    I had the issue of one or multiple people constantly either a robot leaching my images or referencing my images for another site to the point where I was constantly running out of bandwidth for my site. To counteract the issue I have had to rename my image directory.

    I have changed the image directory using FTP and set permissions to 777
    I have modified my configure.php file define('DIR_WS_IMAGES', 'movedimages/')

    The site and everything seems to work fine until I go into the catalogue menu in the admin and then I get
    Error: Catalog images directory does not exist: /home/sitename/public_html/shop/images/

    Can someone either suggest another process to stop the use of my images or suggest how I can fix the error?

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Changing the Image Directory

    First, try making the same name change in your admin /includes/configure.php - that will get it looking in the correct new place.

    Your cPanel or whatever your server uses may have a "hotlinking protection" feature.

  3. #3
    Join Date
    Mar 2012
    Posts
    12
    Plugin Contributions
    0

    Default Re: Changing the Image Directory

    Quote Originally Posted by gjh42 View Post
    First, try making the same name change in your admin /includes/configure.php - that will get it looking in the correct new place.

    Your cPanel or whatever your server uses may have a "hotlinking protection" feature.
    Thanks the first option worked I hadn't realised to change that file

    For others

    LEAVE this line define('DIR_WS_IMAGES', 'images/');

    Change this line define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'movedimages/');
    Change this line define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'movedimages/');

    And this seemed to work for me

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Changing the Image Directory

    The changed images folder will work only until the leeches follow the path to the new one. You can't hide it, as it has to be publicly available. For actual protection you need to use the server security.

 

 

Similar Threads

  1. v154 Changing Image Directory
    By racingtech in forum General Questions
    Replies: 1
    Last Post: 9 Sep 2015, 09:57 PM
  2. Adding another sub-directory level to Image Directory?
    By erko in forum General Questions
    Replies: 0
    Last Post: 31 May 2010, 12:33 PM
  3. Changing my store directory on the web server
    By themadhattermd in forum General Questions
    Replies: 1
    Last Post: 29 Apr 2010, 07:12 AM
  4. Changing the download directory
    By tiberall in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Apr 2009, 08:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg