Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在localhost/mytestfolder/上托管一个 Silex 应用程序,但正如我注意到的,每次我路由一个 URL 时,我都必须这样做
$app->get('mytestfolder/myRoute' ...
有没有办法可以配置路由器,所以我只是这样做
$app->get('myRoute' ...
尝试将 web 目录放在 RewriteBase 上
<IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteBase /lolcollege/web RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ app/index.php [L] </IfModule>