PDA

View Full Version : The Old ones.....


Starbuck
02-07-2008, 01:42 PM
There is a site out there which archived (copied the HTML) of some of my very old webpages:ytold:, which is a good thing for promotion, but as the old pages had many images (long gone) the archived pages are filled with "?"'s dead links and I receive a lot of errors in my logs (File does not exist)

as I cannot edit the links on their site...

is there a way with htaccess or something to re-route these requests?

ex:

File does not exist: /xMYSITE/www/images/picture_oct_11_2005.jpg

to

/xMYSITE/www/images/picture_feb_7_2008.jpg

kitchin
02-07-2008, 07:51 PM
RedirectPermanent /images/picture_oct_11_2005.jpg http://example.com/images/picture_feb_7_2008.jpg


http://httpd.apache.org/docs/1.3/mod/mod_alias.html#redirectperm
So the first argument is the old address starting with "/", the second argument is the new address starting with "http://".
Make sure your .htaccess file ends in a blank line and upload it as text/ASCII.

Starbuck
02-09-2008, 06:40 PM
Wow! That works great! Thank you !:ytecstat: