-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess_old
50 lines (34 loc) · 1.3 KB
/
.htaccess_old
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
SetEnv SHORT_OPEN_TAGS 0
SetEnv REGISTER_GLOBALS 0
SetEnv MAGIC_QUOTES 0
SetEnv SESSION_AUTOSTART 0
SetEnv ZEND_OPTIMIZER 1
SetEnv PHP_VER 5_TEST*
DirectoryIndex app.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /web
RewriteCond %{HTTP_HOST} ^old\.capvcm\.com$ [NC]
RewriteRule ^/(.*)$ /old/$1 [L]
RewriteCond %{REQUEST_URI} ^/old$
RewriteRule ^/(.*)$ /old/$1 [QSA,L]
RewriteCond %{HTTP_HOST} ^platformtest\.capvcm\.com$ [NC]
RewriteRule ^/(.*)$ /platformtest/$1 [L]
RewriteCond %{REQUEST_URI} ^/platformtest$
RewriteRule ^/(.*)$ /platformtest/$1 [QSA,L]
RewriteCond %{HTTP_HOST} ^js\.capvcm\.com$ [NC]
RewriteRule ^/(.*)$ /js/$1 [L]
RewriteCond %{REQUEST_URI} ^/js
RewriteRule ^/(.*)$ /js/$1 [QSA,L]
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteRule ^(.*)$ web/$1 [QSA,L]
RewriteCond %{REQUEST_URI} \.(css|ttf|woff|woff2|json|jpeg|tpl|html|gif|GIF|ico|jpg|js|png|swf|txt|pdf|doc|docx|mp3|svg)$
RewriteRule ^(.*)$ $1 [QSA,L]
# RewriteRule ^(.*)$ $1 [QSA,L]
RewriteCond %{REQUEST_URI} dev.php
RewriteRule ^(.*)$ web/dev.php/$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ web/$1 [QSA,L]
</IfModule>