添加后台代理代码
This commit is contained in:
12
codes/agent/game/api/.htaccess
Normal file
12
codes/agent/game/api/.htaccess
Normal file
@@ -0,0 +1,12 @@
|
||||
RewriteEngine on
|
||||
|
||||
# 将API请求重定向到source/public目录
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^api/(.*)$ source/public/index.php/$1 [L]
|
||||
|
||||
# 将其他请求也重定向到source/public目录,除非文件存在
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_URI} !^/source/public/
|
||||
RewriteRule ^(.*)$ source/public/index.php/$1 [L]
|
||||
Reference in New Issue
Block a user