AddDefaultCharset UTF-8
DirectoryIndex index.php
#Options -MultiViews #other way apache adds automatically .html
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /pubsweet
# RewriteBase /
#rewritebase is the path relative to document root
#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
#When your application folder isn't in the system folder
#This snippet prevents user access to the application folder
#Submitted by: Fabdrol
#Rename 'application' to your applications folder name.
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.+)/(.+)*$ index.php?/$1 [QSA,L]
</IfModule>
#Gzip
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript
AddOutputFilter DEFLATE php
</ifmodule>
#End Gzip
<IfModule mod_expires.c>
ExpiresActive On
# ExpiresDefault A3600
<FilesMatch ".(jpg|JPG|gif|GIF|png|css|ico|js|otf)$">
ExpiresDefault "access plus 30 day"
</FilesMatch>
</IfModule>