使用 Ubuntu Apache2 PHP
目录结构
/var/www/html/app
app-
|- system-
|- core-files.php
|- boot.php
|- myapp
|- .htaccess
.htaccess
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/ (.*) system/boot.php/$1 [QSA,L]
</IfModule>
我正在尝试重写localhost/app/system/boot.php?arg
> localhost/app
无论何时在后端进入localhost/app
,都将使用localhost/app/system/boot.php?arg
,但没有index.php