phalapi icon indicating copy to clipboard operation
phalapi copied to clipboard

URI路由匹配问题

Open imguoc opened this issue 6 years ago • 1 comments

你好! 我已经开启 'enable_uri_match' => true 并且配置apache如下 <IfModule mod_rewrite.c> RewriteEngine on RewriteBase /

RewriteCond %{HTTP_HOST} ^dev.api.net$

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_URI} !^/phalapi/public/
RewriteRule ^(.*)$ /phalapi/public/$1
RewriteRule ^(/)?$ index.php [L]

报错如下: Not Found The requested URL /phalapi/public/App/Hello/World was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

请问怎么配置呢?

imguoc avatar Sep 18 '19 03:09 imguoc

表示相同的问题,无法重写request

gideonsenku avatar Dec 11 '19 10:12 gideonsenku