forked from appleseedproj/appleseed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
htaccess.original
39 lines (30 loc) · 1.33 KB
/
htaccess.original
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
37
38
39
#-------LOCAL RULES----------------
#------APPLESEED RULES--------------
RewriteEngine On
Options +FollowSymlinks -Indexes
# Go directly to these files, do not process through image.php
RewriteRule .*^themes.*\.gif$ - [L]
RewriteRule .*^themes.*\.jpg$ - [L]
RewriteRule .*^themes.*\.png$ - [L]
# Redirect to legacy location for now
RedirectMatch 301 ^/legacy/photos/(.*)/profile.jpg$ /_storage/legacy/photos/$1/profile.jpg
RewriteRule ^_storage/legacy/photos/.*/profile.jpg - [L]
RewriteRule .*^_storage/legacy/photos/.*/icons/.*\.gif$ - [L]
RewriteRule .*^_storage/legacy/photos/.*/icons/.*\.jpg$ - [L]
RewriteRule .*^_storage/legacy/photos/.*/icons/.*\.png$ - [L]
# Redirect to image.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .*\.jpg$ system/appleseed.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .*\.gif$ system/appleseed.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .*\.png$ system/appleseed.php [L]
# Redirect appleseed configuration request attempts to 403 Forbidden message.
RewriteRule .*conf$ legacy/code/error/403.php [L]
# Redirect attempts to access the install script.
RewriteRule ^index.php.*$ / [R]
RewriteRule ^$ system/appleseed.php
# Redirect everything else to Appleseed initialization.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) system/appleseed.php