-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
39 lines (25 loc) · 1.43 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
# MultiViews Off
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_URI} js/(.*.js)$
RewriteRule js/(.*.js)$ web_root/js/$1 [QSA,L]
RewriteCond %{REQUEST_URI} imgs/(.*\..*)$
RewriteRule imgs/(.*\..*)$ web_root/imgs/$1 [QSA,L]
RewriteCond %{REQUEST_URI} css/(.*.css)$
RewriteRule css/(.*.css)$ web_root/css/$1 [QSA,L]
RewriteCond %{REQUEST_URI} api/(.*)/(.*)/(.*)/$
RewriteRule api/(.*)/(.*)/(.*)/$ api_index.php?method=$1&page=$2¶m=$3&original_uri=%{REQUEST_URI} [QSA,L]
RewriteCond %{REQUEST_URI} api/(.*)/(.*)/$
RewriteRule api/(.*)/(.*)/$ api_index.php?method=$1&page=$2&original_uri=%{REQUEST_URI} [QSA,L]
RewriteCond %{REQUEST_URI} api/(.*)/(.*)/(.*)$
RewriteRule api/(.*)/(.*)/([^\.]*)$ api_index.php?method=$1&page=$2¶m=$3&original_uri=%{REQUEST_URI} [QSA,L]
RewriteCond %{REQUEST_URI} api/(.*)/([^\.]*)$
RewriteRule api/(.*)/(.*)$ api_index.php?method=$1&page=$2 [QSA,L]
RewriteCond %{REQUEST_URI} ^(.*)/(.*)/(.*)/$
RewriteRule ^(.*)/(.*)/(.*)/$ index.php?method=$1&page=$2¶m=$3&original_uri=%{REQUEST_URI} [QSA,L]
RewriteCond %{REQUEST_URI} ^(.*)/(.*)/$
RewriteRule ^(.*)/(.*)/$ index.php?method=$1&page=$2&original_uri=%{REQUEST_URI} [QSA,L]
RewriteCond %{REQUEST_URI} ^(.*)/(.*)/(.*)$
RewriteRule ^(.*)/(.*)/([^\.]*)$ index.php?method=$1&page=$2¶m=$3&original_uri=%{REQUEST_URI} [QSA,L]
RewriteCond %{REQUEST_URI} ^(.*)/([^\.]*)$
RewriteRule ^(.*)/(.*)$ index.php?method=$1&page=$2&original_uri=%{REQUEST_URI} [QSA,L]