Err... Whats's up Green? HTACCESS help anybody?
November 28, 2010 2:18 PM Subscribe
I am trying to replace all requests to a certain directory on my website with a certain image. Any request to http://mywebsite.com/specific_directory/*.* would be replaced with http://mywebsite.com/specific_img.jpg.
posted by B(oYo)BIES to Computers & Internet (5 answers total) 2 users marked this as a favorite
Ok, so I have my website:
I want all requests for URLs in the following directory:
to be replaced with http://mywebsite.com/specific_img.jpg
So if you tried loading
you would receive http://mywebsite.com/specific_img.jpg every time.
I would also like to preserve the requested file name if possible. They see http://mywebsite.com/specific_directory/image.jpg in their address bar but are served up http://mywebsite.com/specific_img.jpg.
Can anybody give me a hint on this? Is .htaccess the right way to go with this? I would like this to work for hotlinking and for anybody that tried accessing it from my website. I would also like this to work for files that do not exist in the directory. Is all this possible?