makinacorpus/enketo/master/public/.htaccess - Htaccess File

makinacorpus/enketo/master/public/.htaccess

#don't list the directory contents
IndexIgnore *

RewriteEngine on

#RewriteCond %{HTTPS} off
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

#clean urls
RewriteCond $1 !^(index.php|info.php|sitemap.xml|css|images|private_media|js-source|js-min|libraries|robots.txt|favicon.ico|checkforconnection.txt|checkforconnection.php)
RewriteRule ^(.*)$ /index.php/$1 [L]

#attempt to allow .appcache extension for manifest files (not working yet)
#RewriteRule ^(.*)manifest.appcache /$1 [NC,L]

#make sure certain files are served with the right Content-type
AddType font/ttf .ttf
AddType application/font-woff .woff
#AddType text/cache-manifest .appcache

#Avoid caching of manifest files
ExpiresByType text/cache-manifest "access plus 0 seconds"

#allow larger file size (can also be set in php.ini)
php_value upload_max_filesize 100M
php_value post_max_size 250M

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, HTTPS, REQUEST_URI

Comments

Apache