Full service web hosting, great prices and support. Starts at $1.99/month!
Results 1 to 6 of 6

Thread: change path to images to absolute reference

  1. #1

    Default change path to images to absolute reference

    My web host uses IIS. They do not permit file uploads to folders inside the main website folder. I can create a new folder on the same level as the main folder for my images, but I need a little help in modifying the code to display the images in the pages and to direct the upload to the folder.

    Any tips?

  2. #2


    Not sure what your saying - you can not have subfolders in subfolders?

    Where did you install OSC - where did you need to put the images. I have an IIS server and works fine.

    If you installed to www.mystore.com/catalog/ and want the images from www.mystore.com/images/ then change your configure.php file and change the define for images to "../images" do the same for upload/downloads.

    Better suggestion - get a Apache host.

  3. #3


    Ok - I have some of this figured out, so let me restate the situation:

    In IIS, my images are in a folder not inside the root web, but at the same level (ISP security stuff). The created a virutal directory for me called maximages. I made the apporpriate changes in the catalog/includes/configure.php, moved my images, etc. and that part works.

    In the admin, though, I've tracked my problem down to the DIR_FS_CATALOG_IMAGES variable. I keep getting an error that the folder for the images doesn't exist. I've tried putting the fully qualified path (d:/hosted web sites/my.id/site/maximages/), just "/maximages/", and just about any other combo I can think of, but I am still getting the error (with the missing folder error changing to reflect whatever I set the variable to). I guess if somebody can tell me how this var is used in the code, or where it is, I can figure out how I need to config that variable so it works.

    Thanks in advance!

  4. #4


    Have you tried 'maximages/' (not '/maximages/') or '../maximages/' ?

  5. #5


    there are 2 config.php files, one is in the includes and one is in includes admin

  6. #6


    Did you ever figure out this problem? I have the same "images directory does not exist".

Similar Threads

  1. Path to images wrong after install
    By cwinter in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 12-14-2004, 06:37 AM
  2. Images Path ...
    By arames in forum osCommerce 2.2 Modification Help
    Replies: 7
    Last Post: 06-24-2004, 06:59 AM
  3. Image path, where to change?
    By misterjonl in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 10-08-2003, 07:23 PM
  4. How to change httpsdocs path to httpdocs, post installation?
    By dmilo in forum osCommerce 2.2 Installation Help
    Replies: 12
    Last Post: 04-22-2003, 02:25 AM
  5. Absolute vs. Relative Links in header.php
    By sheikyerbouti in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 10-24-2002, 10:38 AM



Posting Permissions

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