forked from allenpluto/api_top4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_root.htaccess.example
More file actions
46 lines (36 loc) · 1.74 KB
/
Copy path_root.htaccess.example
File metadata and controls
46 lines (36 loc) · 1.74 KB
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
#ErrorDocument 404 /allen_frame_trial/404.php
#ErrorDocument 403 /allen_frame_trial/404.php
Options +FollowSymlinks
Options -Indexes
DirectorySlash Off
RewriteEngine On
RewriteBase /allen_frame_trial/
# Force remove trailing slash
RewriteRule ^(.*)/$ $1?slash_remove=$1 [L,R=301]
# If pagination value is passed by url, redirect to query
RewriteCond %{REQUEST_URI} /screen/([^/]*)
RewriteRule (.*)(?:/screen/[^/]*)(.*) ./$1$2?screen=%1 [QSA,L,R=301]
# If sort value is passed by url, redirect to query
RewriteCond %{REQUEST_URI} /sort/([^/]*)
RewriteRule (.*)(?:/sort/[^/]*)(.*) ./$1$2?sort=%1 [QSA,L,R=301]
#RewriteCond %{REQUEST_URI} (^/allen_frame_trial/$)
#RewriteRule (.*) asset/html/index.html?request_uri=%1&target_uri=$1 [QSA,NC,L]
# Redirect all request to cache folder
RewriteCond %{QUERY_STRING} !request_uri=
RewriteCond %{REQUEST_URI} !(/(asset|content|developer|login)/|404\.php|favicon)
RewriteCond %{REQUEST_URI} (.*)
RewriteRule (.*) asset/$1?request_uri=%1&rewrite_base=$1 [QSA,NC,L]
RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) load.php?final_request=$1 [QSA,NC,L]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)$ developer/test.php?request_uri=$1 [L,QSA]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^([0-9a-z_-]+)/([0-9a-z_-]+)/(.+)$ index.php?namespace=$1&instance=$2&extra_parameter=$3 [L,QSA]
#RewriteRule ^default/([0-9a-z_-]*)$ $1 [R=301,L,QSA]
#RewriteRule ^([0-9a-z_-]+)/([0-9a-z_-]*)$ index.php?namespace=$1&instance=$2 [L,QSA]
#RewriteRule ^home$ . [R=301,L,QSA]
#RewriteRule ^([0-9a-z_-]+)$ index.php?namespace=default&instance=$1 [L,QSA]
#RewriteRule ^()$ index.php?namespace=default&instance=home [L,QSA]