adres çubuğuna yolunu girerken htaccess yönlendirme

2 Cevap

I want to move some files to another directory on my web server, but these files are images, that my clients link to. I have not got the time to go and change over 100 image urls, so is there a way i can get .htaccess file to do a mod_rewrite to point then image url to where it should be?

Teşekkürler

Fero

2 Cevap

Sunucu tarafında bu sınırlayabilir.

Bu site ile eşleşen eğer referer başlığını kontrol etmenin bir yolu.

Diğer simge veya HTTP kimlik çeşit geçer, ve belki SSL ile belirteci / auth korumak sunucu ve flaş arasında özel bir yükleme mekanizması kullanmaktır.

Seçtiğiniz ne olursa olsun geçirmez% 100 kurşun olmayacak ve IMO acele değmez.

Evet, bu oldukça mod_rewrite nokta.

Eğer sadece bir dizin toptan hareket ediyorsanız, o zaman basit bir yönlendirme olsa daha kolay olacaktır.

Redirect 301 /old/images/ http://example.com/new/images/