-
Notifications
You must be signed in to change notification settings - Fork 1
/
.htaccess
36 lines (30 loc) · 1.27 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright (c) 2012, webvariants GbR, http://www.webvariants.de
#
# This file is released under the terms of the MIT license. You can find the
# complete text in the attached LICENSE file or online at:
#
# http://www.opensource.org/licenses/mit-license.php
RewriteEngine On
# RewriteBase /
# Don't allow access to certain files
<FilesMatch "^((composer\.(json|lock))|version|LICENSE)$">
Deny from all
</FilesMatch>
# Single-Domain
# RewriteCond %{HTTP_HOST} ^example\.de$
# RewriteRule ^(.*)$ http://www.example.de/$1 [R=301,L]
# Sally Legacy Backend
RewriteRule ^backend/assets/(.*?)$ sally/backend/assets/$1 [L]
RewriteRule ^backend/?$ index.php [QSA,E=SLYAPP:backend]
RewriteRule ^backend/(.*)$ index.php [QSA,E=SLYAPP:backend]
# Assets Cache
RewriteCond %{REQUEST_FILENAME} \.(less|css|js|gif|jpg|jpeg|png|swf|ico|pdf|webp)$
RewriteCond %{REQUEST_URI} !wym_styles.css$
RewriteRule ^(.*)$ data/dyn/public/sally/static-cache/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_URI} !^assets/.*
RewriteCond %{REQUEST_URI} !^data/.*
RewriteCond %{REQUEST_URI} !^sally/.*
RewriteRule .* index.php [E=SLYAPP:frontend,E=SLYBASE:/]