Deutsch

Задачка

12.08.10 21:42
Re: Задачка
 
  femidav местный житель
в ответ voxel3d 12.08.10 21:24
C долларом это выражения найденные в RewriteRule, с процентами - в условии. $0 - это полностью весь match в rule, %1 - первое в условии, то бишь 'de'.
Вот мой .htaccess из папки с ресурсами:
RewriteEngine on
RewriteCond %{REQUEST_URI} .*?\.r[0-9]+\.(css|js)$
RewriteRule (.*?)\.r[0-9]+\.(css|js)$ $1\.$2
<ifmodule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 year"
</ifmodule>
<ifmodule mod_deflate.c>
<FilesMatch "\.(css|js)$">
SetOutputFilter DEFLATE
</FilesMatch>
</ifmodule>
<ifmodule mod_headers.c>
<FilesMatch "\.(jpg|jpeg|png|gif)$">
Header set Cache-Control "public"
</FilesMatch>
</ifmodule>


http://www.askapache.com/htaccess/using-filesmatch-and-files-in-htaccess.html

 

Перейти на