fashionweb/moraso/master/.htaccess - Htaccess File

fashionweb/moraso/master/.htaccess

AddDefaultCharset UTF-8

php_value date.timezone "Europe/Berlin"

<IfModule mod_deflate.c>
  Header add X-Enabled mod_deflate
</IfModule>

<IfModule mod_gzip.c>
  Header add X-Enabled mod_gzip
</ifModule>

<IfModule mod_rewrite.c>
  RewriteEngine on

  RewriteBase /

  RewriteRule ^res/.*$ - [L]

  RewriteRule ^lib/(.*)$ index.php?class=$1 [QSA,L]
  RewriteRule ^id/(.*)$ index.php?id=$1 [QSA,L]
  RewriteRule ^adm/id/(d*).*$ index.php?id=$1 [QSA,L]

  RewriteRule ^adm/.*.(jpg|jpeg|gif|css|swf|png|js|xml|pdf|ico|htc|eot|svg|ttf|woff).*$ - [NC,L]
  RewriteRule ^adm/edit/(.*)$ index.php?edit=1&id=$1 [QSA,L]
  RewriteRule ^adm/preview/(.*)$ index.php?preview=1&id=$1 [QSA,L]
  RewriteRule ^adm/(.*)$ adm/index.php?$1 [QSA,L]

  RewriteCond %{DOCUMENT_ROOT}/application/data/cachetransparent/data%{REQUEST_URI} -f
  RewriteRule ^(.*)$ application/data/cachetransparent/data%{REQUEST_URI} [L]

  RewriteRule ^skins/(.*)$ application/skins/$1 [L]

  RewriteRule ^image/(.*) index.php?imageurl=$1 [QSA,L]
  RewriteRule ^file/download/(.*) index.php?fileurl=$1 [QSA,L]
  RewriteRule ^file/(.*) index.php?&fileurl=$1&inline=1 [QSA,L]
  RewriteRule ^.*/(.*).minime.(.*) index.php?minify=$1&type=$2 [QSA,L]
  RewriteRule ^skin/(.*) index.php?skinsource=$1 [QSA,L]

  RewriteRule ^sitemap.xml index.php?create=sitemap&format=xml [QSA,L]

  RewriteRule ^.*.(php|jpg|jpeg|gif|css|swf|doc|txt|xls|png|js|xml|pdf|ico|htc|eot|svg|ttf|woff).*$ - [NC,L]

  RewriteRule ^([^(]*)(([^)]*))$ index.php?url=$1&renderOnly=$2 [QSA,L]
  RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>

<Files .htaccess>
    order allow,deny
  deny from all
</Files>

<Files config.json>
    order allow,deny
  deny from all
</Files>

# if problems occur - i.e. with file uploads - uncomment the next line
#php_value suhosin.session.cryptua  0

On Github License

Files

Download PDF of Htaccess file
DOCUMENT_ROOT, REQUEST_URI

Comments

Apache