-
Notifications
You must be signed in to change notification settings - Fork 0
/
~.htaccess
84 lines (72 loc) · 4 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
####### BEGIN YEAGER GENERATED - DO NOT EDIT #######
RewriteEngine on
############### END YEAGER GENERATED ###############
####### BEGIN YEAGER GENERATED - DO NOT EDIT #######
# Block access and execution of certain filetypes in frontend folder
RewriteCond %{REQUEST_URI} ^[__CFG_WEB_ROOT__][__CFG_FRONTEND_DIR__]/ [OR]
RewriteCond %{REQUEST_URI} ^[__CFG_WEB_ROOT__]yeager/libs/ [OR]
RewriteCond %{REQUEST_URI} ^[__CFG_WEB_ROOT__]yeager/ui/js/3rd/
RewriteRule \.(htaccess|htpasswd|phps|php|php3|php4|php5|exe|pl|jsp|asp|aspx|sh|cgi|py)$ /$1 [F]
############### END YEAGER GENERATED ###############
####### BEGIN YEAGER GENERATED - DO NOT EDIT #######
# For Root
RewriteCond %{REQUEST_URI} ^[__CFG_WEB_ROOT__]$
RewriteRule ^(.*)$ [__CFG_WEB_ROOT__][__SITE_NAME__]/ [L]
############### END YEAGER GENERATED ###############
####### BEGIN YEAGER GENERATED - DO NOT EDIT #######
# Block direct access on files folder
RewriteCond %{REQUEST_URI} ^[__CFG_WEB_ROOT__][__CFG_FILES_DIR__]/
RewriteRule ^(.*)$ /$1 [F]
############### END YEAGER GENERATED ###############
####### BEGIN YEAGER GENERATED - DO NOT EDIT #######
# Block direct access on extensions folder
RewriteCond %{REQUEST_URI} ^[__CFG_WEB_ROOT__][__CFG_EXTENSIONS_DIR__]/
RewriteCond %{REQUEST_URI} !^[__CFG_WEB_ROOT__][__CFG_EXTENSIONS_DIR__]/(.*)/icon.png$
RewriteRule ^(.*)$ /$1 [F]
############### END YEAGER GENERATED ###############
####### BEGIN YEAGER GENERATED - DO NOT EDIT #######
# Rewrite for images and downloads
RewriteCond %{REQUEST_URI} ^[__CFG_WEB_ROOT__]image/
RewriteRule ^(.*)$ [__CFG_WEB_ROOT__]yeager/y.php/image/$1 [L]
RewriteCond %{REQUEST_URI} ^[__CFG_WEB_ROOT__]userimage/
RewriteRule ^(.*)$ [__CFG_WEB_ROOT__]yeager/y.php/userimage/$1 [L]
RewriteCond %{REQUEST_URI} ^[__CFG_WEB_ROOT__]download/
RewriteRule ^(.*)$ [__CFG_WEB_ROOT__]yeager/y.php/download/$1 [L]
############### END YEAGER GENERATED ###############
####### BEGIN YEAGER GENERATED - DO NOT EDIT #######
RewriteCond %{REQUEST_URI} ^[__CFG_WEB_ROOT__]mailing/
RewriteRule ^(.*)$ [__CFG_WEB_ROOT__]yeager/y.php/mailing/$1 [L]
############### END YEAGER GENERATED ###############
####### BEGIN YEAGER GENERATED - DO NOT EDIT #######
# Rewrite for yeager backend
RewriteCond %{REQUEST_URI} ^[__CFG_WEB_ROOT__]yeager/$
RewriteCond %{REQUEST_URI} !^[__CFG_WEB_ROOT__]yeager/y.php/
RewriteRule ^(.*)$ [__CFG_WEB_ROOT__]yeager/y.php/ [L]
############### END YEAGER GENERATED ###############
####### BEGIN YEAGER GENERATED - DO NOT EDIT #######
# Only rewrite page urls when not special url
RewriteCond %{REQUEST_URI} !^[__CFG_WEB_ROOT__][__CFG_FRONTEND_DIR__]/
RewriteCond %{REQUEST_URI} !^[__CFG_WEB_ROOT__][__CFG_EXTENSIONS_DIR__]/
RewriteCond %{REQUEST_URI} !^[__CFG_WEB_ROOT__]yeager/
RewriteCond %{REQUEST_URI} !^[__CFG_WEB_ROOT__]image/
RewriteCond %{REQUEST_URI} !^[__CFG_WEB_ROOT__]userimage/
RewriteCond %{REQUEST_URI} !^[__CFG_WEB_ROOT__]mailing/
RewriteCond %{REQUEST_URI} !^[__CFG_WEB_ROOT__]download/
RewriteCond %{REQUEST_URI} !^[__CFG_WEB_ROOT__]\xC2\xA7\xC2\xA7LINKTO\:
RewriteRule ^(.*)$ [__CFG_WEB_ROOT__]yeager/y.php/page/$1 [L]
############### END YEAGER GENERATED ###############
####### BEGIN YEAGER GENERATED - DO NOT EDIT #######
# Rewrite special short URLs
# §§LINKTO:PAGE:5:3§§ <- Pages
# §§LINKTO:IMG:578§§ <- Images
# §§LINKTO:DOWN:578§§ <- Downloads
# For Images (and their views)
RewriteCond %{REQUEST_URI} ^[__CFG_WEB_ROOT__]\xC2\xA7\xC2\xA7LINKTO\:IMG\:(.*)\xC2\xA7\xC2\xA7(.*)$
RewriteRule ^\xC2\xA7\xC2\xA7LINKTO\:IMG\:(.*)\xC2\xA7\xC2\xA7(.*)$ [__CFG_WEB_ROOT__]yeager/y.php/image/$1/$2 [L]
# For Downloads
RewriteCond %{REQUEST_URI} ^[__CFG_WEB_ROOT__]\xC2\xA7\xC2\xA7LINKTO\:DOWN\:(.*)\xC2\xA7\xC2\xA7$
RewriteRule ^\xC2\xA7\xC2\xA7LINKTO\:DOWN\:(.*)\xC2\xA7\xC2\xA7$ [__CFG_WEB_ROOT__]yeager/y.php/download/$1 [L]
# For Pages
RewriteCond %{REQUEST_URI} ^[__CFG_WEB_ROOT__]\xC2\xA7\xC2\xA7LINKTO\:PAGE\:(.*)\:(.*)\xC2\xA7\xC2\xA7$
RewriteRule ^\xC2\xA7\xC2\xA7LINKTO\:PAGE\:(.*)\:(.*)\xC2\xA7\xC2\xA7$ [__CFG_WEB_ROOT__]yeager/y.php/page/$1/$2 [L]
############### END YEAGER GENERATED ###############