i po przekierowaniu
Kod
RewriteEngine on
RewriteRule "img/([\w-]+).png" "http://stronaa.pl/?id=$1" [nc,L]
RewriteRule "img/([\w-]+).png" "http://stronaa.pl/?id=$1" [nc,L]
na stronie.pl/?id=123 zdjecie img/123.png sie nie wyswietla ... jak to zrobic?
dobra rozwiazne tak:
Kod
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://strona.pl.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.stronaa.pl.*$ [NC]
RewriteRule "imgs/([\w-]+).png" "http://strona.pl/?imgs=$1" [nc,L]
RewriteCond %{HTTP_REFERER} !^http://strona.pl.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.stronaa.pl.*$ [NC]
RewriteRule "imgs/([\w-]+).png" "http://strona.pl/?imgs=$1" [nc,L]
ale znalazlem inny problem, mianowcie chce zeby np. facebook mial dostep do pliku www.strona.pl/imgs/1.png a ktos kto wejdzie w plik zeby go przekierowalo jak teraz... jakies sugestie?