Forum Moderators: phranque
example:
I want to redirect www.domain.com to www.domain.com/cart/index.php
So in the httpd.conf file, I created an entry at the very bottom of the file.
redirect /index.html [domain.com...]
When I open IE, the cart page comes up. Me very happy but the pictures of the products that i've loaded into the cart are not displaying. Weird.
Then I comment off the entry in httpd.conf and restart apache, and the pictures still won't come up. Yikes
Now back to my main concern. Is redirecting in httpd.conf the right way to do things? Seemed to work but doesn't load the pictures.
I read I can use .htacess in apache rootdocument directory. So I created such a file and apache stopped working, so double yikes. I am staying away from that.
most things you do in httpd.conf can also be done in .htaccess but there are often subtle differences in how or why.
some not so subtle - if you were on shared hosting you typically wouldn't get near httpd.conf for obvious reasons.
whatever you are doing has been done before and with enough information we can figure out how to fix it.
a good place to start would be the error and access logs.
what are they telling you about referred access to image file urls?
have you tried directly entering the absolute url of an image file in your browser?
are there any directives in httpd.conf that may affect image files or directories (or in any .htaccess file(s) in the image directory or any of its parents)?
In the httpd.Conf file. I did this and it worked. So happy
<Directory "C:/directory">
Redirect permanent /index.html [domain.com...]
</Directory>