Forum Moderators: phranque
can I use any alias or mod_rewrite in .htaccess so it would find the pictures?
what it should look like?
thanks for any help.
Can I make a suggestion? When you write the images directory to your database table, don't write the entire path out there but start at the end of your document root. Then, in your application program, concatenate the directory structure back together again. So, you would store
files/productimages/stingray.jpgin the database table column. Then use your server-side scripting language to append the DOCUMENT_ROOT to the directory structure. Now it will be much more portable, meaning it will work not only on your development platform, but also any other site you want to move the code to, including your current LIVE site. Make sense?
the problem is that I use x-cart shopping cart and they write the path to all images into mySQL database. (i upload the images through the web interface). I don't have any control over it.
Now, when I download the database to the local machine, the system can not (for ex.) find image in:
[localhost...]
because the image is in:
[localhost...]
how can I alter the behaviour of the system, so the system can find images when is given full path?
is there anything that I can write into the .htaccess or httpd.conf files on local system?
Unfortunately I don't know much about these things.