RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?uri=$1 [QSA,L]
如果我访问
,则上述工作正常http://localhost/dir/param-name
但在
上抛出错误http://192.168.16.64/dir/param-name (throws 404 error, it's the ip of my machine)