Размер файла: 5.15Kb
<files .htaccess>
order allow,deny
deny from all
</files>
<files ~ "^(wu_init|wu_config|wu_account-menu|wu_footer|wu_header)\.php">
deny from all
</files>
<IfModule mod_php5.c>
php_value session.cookie_lifetime 604800000
php_value session.gc_maxlifetime 604800000
</IfModule>
php_flag display_errors off
AddDefaultCharset UTF-8
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]
Options All -Indexes
ServerSignature Off
<FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf|js|css|pdf)$">
Header set Cache-Control "max-age=2592000"
</FilesMatch>
<IfModule php5_module>
php_value session.name WUSID
</ifModule>
<ifModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/css text/javascript application/javascript application/x-javascript
</ifModule>
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include mime ^text\.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image\.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
<ifModule mod_headers.c>
<FilesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=43200"
</FilesMatch>
<FilesMatch "\.(js|css|txt)$">
Header set Cache-Control "max-age=604800"
</FilesMatch>
<FilesMatch "\.(flv|swf|ico|gif|jpg|jpeg|png)$">
Header set Cache-Control "max-age=2592000"
</FilesMatch>
<FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$">
Header unset Cache-Control
</FilesMatch>
</IfModule>
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 604800 seconds"
ExpiresByType application/javascript "access plus 604800 seconds"
ExpiresByType application/x-javascript "access plus 604800 seconds"
ExpiresByType text/html "access plus 43200 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
</ifModule>
<IfModule mod_headers.c>
Header add Access-Control-Allow-Origin "*"
</IfModule>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ $1.php
RewriteRule ^account/support\/(.*?)$ account/support.php?id=$1 [L,QSA]
RewriteRule ^account/messages\/(.*?)$ account/messages.php?usr=$1 [L,QSA]
RewriteRule ^wu-engine/wu-actions/attach_download\/(.*?)$ wu-engine/wu-actions/attach_download.php?id=$1 [L,QSA]
RewriteRule ^user\/(.*?)$ user.php?login=$1 [L,QSA]
RewriteRule ^eshop_show\/(.*?)$ eshop_show.php?id=$1 [L,QSA]
RewriteRule ^account/eshop_edit\/(.*?)$ account/eshop_edit.php?id=$1 [L,QSA]
RewriteRule ^account/eshop_units\/(.*?)$ account/eshop_units.php?id=$1 [L,QSA]
RewriteRule ^account/eshop_images\/(.*?)$ account/eshop_images.php?id=$1 [L,QSA]
RewriteRule ^wu-engine/wu-actions/eshop_item_download_reg\/(.*?)$ wu-engine/wu-actions/eshop_item_download_reg.php?id=$1 [L,QSA]
RewriteRule ^wu-engine/wu-actions/eshop_item_download_noreg\/(.*?)$ wu-engine/wu-actions/eshop_item_download_noreg.php?id=$1 [L,QSA]
RewriteRule ^wu-admin/eshop/view\/(.*?)$ wu-admin/eshop/view.php?id=$1 [L,QSA]
RewriteRule ^wu-engine/wu-actions/adm_eshop_download\/(.*?)$ wu-engine/wu-actions/adm_eshop_download.php?id=$1 [L,QSA]
RewriteRule ^wu-admin/eshop/edit\/(.*?)$ wu-admin/eshop/edit.php?id=$1 [L,QSA]
RewriteRule ^wu-admin/eshop/images\/(.*?)$ wu-admin/eshop/images.php?id=$1 [L,QSA]
RewriteRule ^category\/(.*?)$ category.php?id=$1 [L,QSA]
RewriteCond %{REQUEST_URI} ^\/categories
RewriteCond %{QUERY_STRING} ^id=4$
RewriteRule .* /category/scripts? [L,R=301]
RewriteCond %{REQUEST_URI} ^\/categories
RewriteCond %{QUERY_STRING} ^id=5$
RewriteRule .* /category/programms? [L,R=301]
RewriteCond %{REQUEST_URI} ^\/categories
RewriteCond %{QUERY_STRING} ^id=6$
RewriteRule .* /category/mobile? [L,R=301]
RewriteCond %{REQUEST_URI} ^\/categories
RewriteCond %{QUERY_STRING} ^id=7$
RewriteRule .* /category/video? [L,R=301]
RewriteCond %{REQUEST_URI} ^\/categories
RewriteCond %{QUERY_STRING} ^id=8$
RewriteRule .* /category/audio? [L,R=301]
RewriteCond %{REQUEST_URI} ^\/categories
RewriteCond %{QUERY_STRING} ^id=9$
RewriteRule .* /category/books? [L,R=301]
RewriteCond %{REQUEST_URI} ^\/categories
RewriteCond %{QUERY_STRING} ^id=10$
RewriteRule .* /category/keys? [L,R=301]
RewriteCond %{REQUEST_URI} ^\/categories
RewriteCond %{QUERY_STRING} ^id=11$
RewriteRule .* /category/design? [L,R=301]
RewriteCond %{REQUEST_URI} ^\/categories
RewriteCond %{QUERY_STRING} ^id=12$
RewriteRule .* /category/other? [L,R=301]
RewriteCond %{HTTP_HOST} ^www\.(.+) [NC]
RewriteRule .* http://%1/$0 [L,R=301]
php_value post_max_size 120M
php_value upload_max_filesize 120M
RewriteCond %{HTTP_HOST} ^www\.(.+) [NC]
RewriteRule .* http://%1/$0 [L,R=301]