Mokuji/mokuji/release-0.31.0/.htaccess
# ----------------------------------------------------------------------
# Options
# ----------------------------------------------------------------------
# Don't index directories.
Options -Indexes
Options +FollowSymlinks
# ----------------------------------------------------------------------
# URL routing
# ----------------------------------------------------------------------
RewriteEngine On
###
# Reserved words for root level URL keys:
###
# rest
# admin
# install
# mokuji
###
# Rewrite for REST access.
RewriteRule ^/?rest/(.+)$ index.php?_RESTROUTE=$1 [E=MK_ENV:rest,L,QSA]
# Rewrite for the different environments.
# Change 'admin' to something else for different ADMIN_URL_KEY values.
RewriteRule ^/?(admin|install)(/(.*))?$ $3 [E=MK_ENV:$1,QSA]
# Redirect to Mokuji index.
RewriteRule ^/?mokuji/ - [S=1]
RewriteRule ^.*$ index.php [L,QSA]
# ----------------------------------------------------------------------
# Gzip compression
# ----------------------------------------------------------------------
<IfModule mod_deflate.c>
# Force deflate for mangled headers developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping/
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)s*,?s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
</IfModule>
</IfModule>
# Compress all output labeled with one of the following MIME-types
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE
application/atom+xml
application/javascript
application/json
application/rss+xml
application/vnd.ms-fontobject
application/x-font-ttf
application/xhtml+xml
application/xml
font/opentype
image/svg+xml
image/x-icon
text/css
text/html
text/plain
text/x-component
text/xml
</IfModule>
</IfModule>
# ----------------------------------------------------------------------
# Expires headers (for better cache control)
# ----------------------------------------------------------------------
<IfModule mod_expires.c>
ExpiresActive on
# Perhaps better to whitelist expires rules? Perhaps.
ExpiresDefault "access plus 1 month"
# cache.appcache needs re-requests in FF 3.6 (thanks Remy ~Introducing HTML5)
ExpiresByType text/cache-manifest "access plus 0 seconds"
# Dynamic
ExpiresByType text/html "access plus 0 seconds"
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType application/json "access plus 0 seconds"
# Feeds
ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresByType application/atom+xml "access plus 1 hour"
# Favicon (cannot be renamed)
ExpiresByType image/x-icon "access plus 1 week"
# CSS and JavaScript
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
</IfModule>
# ----------------------------------------------------------------------
# Accept REST calls
# ----------------------------------------------------------------------
<Limit POST PUT PATCH DELETE>
Order allow,deny
Allow from all
</Limit>
php_value post_max_size 100M
php_value upload_max_filesize 100M
On Github License
Files