Re: mod_rewrite, css a obrazky

From: Peter Krajčo <peter.krajco (zavinac)>
Date: 25. 01. 2006, 00:00 CET
no mam teraz v .htaccess :
RewriteEngine On
RewriteCond %{REQUEST_URI} ^images/(.*)$
RewriteRule ^/images/(.*)$  $1 [L]

RewriteRule ^([^/]+)/?([0-9]+)?/?([^/]+)?/?$ index.php?cat=$1&id=$2 [QSA]

a nezobrazuje mi tie obrazky :-( a neviem ci to mam aj stravne...

dik

> Peter Krajčo napsal(a):
>> no skusal som to vseliako... mal som aj <img src="/img/cool.png"> <img 
>> src="img/cool.png">
>> <img src="http://localhost/img/cool.png">
>> a nic nepomohlo a neviem preco...
> -------------------------------
>
> ahaaaa, ono se na to totiz aplikuje to pravidlo ;)
>
> musi tam byt neco jako
>
> RewriteCond %{REQUEST_URI} !^/img/(.*)$
> RewriteRule ...
>
> pak je z toho adresar img vyjmut.
> ale je to z hlavy, takze nerucim za uplnou spravnost ;)
>
> -h!-
Received on Wed, 25 Jan 2006 00:00:23 +0100

This archive was generated by hypermail 2.1.8 : 25. 01. 2006, 00:04 CET