2022-03-07 14:56:55 +00:00
|
|
|
#
|
|
|
|
# Rewrite
|
|
|
|
#
|
2022-03-07 14:20:02 +00:00
|
|
|
<IfModule mod_rewrite.c>
|
2022-03-07 14:56:55 +00:00
|
|
|
RewriteEngine On
|
2022-02-26 00:27:10 +00:00
|
|
|
|
2022-03-07 14:56:55 +00:00
|
|
|
# Page
|
|
|
|
RewriteRule ^([a-z\-]+)$ /?page=$1 [QSA,L]
|
2022-05-28 17:11:11 +00:00
|
|
|
|
|
|
|
# Wishlists (My lists)
|
2022-06-08 12:42:17 +00:00
|
|
|
RewriteRule ^wishlists/([0-9]+)$ /?page=wishlists&id=$1 [QSA,L]
|
2022-05-28 17:11:11 +00:00
|
|
|
|
|
|
|
# Wish
|
2022-06-08 12:42:17 +00:00
|
|
|
RewriteRule ^wish/(\d+)$ /?page=wish&id=$1 [QSA,L]
|
2022-05-28 17:11:11 +00:00
|
|
|
|
|
|
|
# Wishlist
|
2022-06-08 12:42:17 +00:00
|
|
|
RewriteRule ^wishlist/([0-9a-f]{40})$ /?page=wishlist&hash=$1 [QSA,L]
|
|
|
|
|
|
|
|
# Blog Post
|
|
|
|
RewriteRule ^blog/([a-z\-0-9]+)$ /?page=blog&slug=$1 [QSA,L]
|
2022-03-07 14:20:02 +00:00
|
|
|
</IfModule>
|
|
|
|
|
2022-03-07 15:09:44 +00:00
|
|
|
##-- When caching of gzipped JS and CSS files is used, enable this setting
|
|
|
|
<IfModule mod_headers.c>
|
|
|
|
Header set Vary Accept-Encoding
|
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
##-- Enable the compression for any type of content
|
|
|
|
<IfModule mod_deflate.c>
|
|
|
|
<FilesMatch "(\.js|\.css|\.html|\.htm|\.php|\.xml|\.ico|\.jpg|\.jpeg|\.png|\.gif|\.svg|\.woff|\.woff2|\.ttf|\.otf|\.eot|\.JS|\.CSS|\.HTML|\.HTM|\.PHP|\.XML|\.ICO|\.JPG|\.JPEG|\.PNG|\.GIF|\.SVG|\.WOFF|\.WOFF2|\.TTF|\.OTF|\.EOT)$">
|
|
|
|
SetOutputFilter DEFLATE
|
|
|
|
</FilesMatch>
|
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
##-- Customization of HTTP request and response headers
|
2022-03-07 14:20:02 +00:00
|
|
|
<IfModule mod_headers.c>
|
2022-03-07 15:09:44 +00:00
|
|
|
<FilesMatch "(\.ico|\.jpg|\.jpeg|\.png|\.gif|\.swf|\.flv|\.svg|\.ICO|\.JPG|\.JPEG|\.PNG|\.GIF|\.SWF|\.FLV|\.SVG)$">
|
|
|
|
Header set Cache-Control "max-age=2592000, public, must-revalidate"
|
2022-03-07 14:20:02 +00:00
|
|
|
</FilesMatch>
|
2022-03-07 15:09:44 +00:00
|
|
|
<FilesMatch "(\.woff|\.woff2|\.ttf|\.otf|\.eot|\.WOFF|\.WOFF2|\.TTF|\.OTF|\.EOT)$">
|
|
|
|
Header set Cache-Control "max-age=2592000, public, must-revalidate"
|
|
|
|
</FilesMatch>
|
|
|
|
<FilesMatch "(\.css|\.js|\.CSS|\.JS)$">
|
|
|
|
Header set Cache-Control "max-age=604800, private, must-revalidate"
|
|
|
|
</FilesMatch>
|
|
|
|
<FilesMatch "(\.xml|\.txt|\.XML|\.TXT)$">
|
|
|
|
Header set Cache-Control "max-age=604800, public, must-revalidate"
|
|
|
|
</FilesMatch>
|
|
|
|
<FilesMatch "(\.html|\.htm|\.php|\.HTML|\.HTM|\.PHP)$">
|
|
|
|
Header set Cache-Control "max-age=1, private, must-revalidate"
|
|
|
|
</FilesMatch>
|
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
##-- Generation of Expires and Cache-Control HTTP headers
|
|
|
|
<IfModule mod_expires.c>
|
|
|
|
ExpiresActive On
|
|
|
|
ExpiresDefault "access plus 1 seconds"
|
|
|
|
ExpiresByType image/gif "access plus 2592000 seconds"
|
|
|
|
ExpiresByType image/jpg "access plus 2592000 seconds"
|
|
|
|
ExpiresByType image/jpeg "access plus 2592000 seconds"
|
|
|
|
ExpiresByType image/png "access plus 2592000 seconds"
|
|
|
|
ExpiresByType image/svg+xml "access plus 2592000 seconds"
|
|
|
|
ExpiresByType text/html "access plus 1 seconds"
|
|
|
|
ExpiresByType text/css "access plus 604800 seconds"
|
|
|
|
ExpiresByType text/javascript "access plus 604800 seconds"
|
|
|
|
ExpiresByType application/x-javascript "access plus 604800 seconds"
|
|
|
|
ExpiresByType application/javascript "access plus 604800 seconds"
|
|
|
|
ExpiresByType text/x-component "access plus 604800 seconds"
|
|
|
|
ExpiresByType font/truetype "access plus 604800 seconds"
|
|
|
|
ExpiresByType font/opentype "access plus 604800 seconds"
|
|
|
|
ExpiresByType application/x-font-ttf "access plus 604800 seconds"
|
|
|
|
ExpiresByType application/x-font-woff "access plus 604800 seconds"
|
|
|
|
ExpiresByType application/font-woff "access plus 604800 seconds"
|
|
|
|
ExpiresByType application/vnd.ms-fontobject "access plus 604800 seconds"
|
|
|
|
ExpiresByType image/x-icon "access plus 604800 seconds"
|
|
|
|
|
|
|
|
<IfModule mod_headers.c>
|
|
|
|
Header append Cache-Control "public"
|
|
|
|
</IfModule>
|
2022-03-07 14:20:02 +00:00
|
|
|
</IfModule>
|