大佬教程收集整理的这篇文章主要介绍了php – 抱歉,找不到您要查找的页面. silex错误,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
<IfModule mod_rewrite.c> Options -MultiViews RewriteENGIne On RewriteBase /silex/web RewriteCond %{requEST_FILename} !-f RewriteRule ^ index.PHP [QSA,L] </IfModule>
<?PHP ini_set('display_errors',1); require_once __DIR__.'../vendor/autoload.PHP'; $app = new Silex\Application(); $app->get('/Hello/{name}',function ($Name) use ($app) { return 'Hello '.$app->escape($Name); }); $app->run();
访问localhost / silex / Hello / world时出现此错误:
“抱歉,找不到您要查找的页面.”
为什么?
<IfModule mod_rewrite.c> RewriteENGIne On RewriteBase /silex/web RewriteCond %{requEST_FILename} !-f RewriteRule ^(.*)$index.PHP?$1 [QSA,L] </IfModule>
文件的位置应该是:
/silex/.htaccess /silex/web/index.PHP
以上是大佬教程为你收集整理的php – 抱歉,找不到您要查找的页面. silex错误全部内容,希望文章能够帮你解决php – 抱歉,找不到您要查找的页面. silex错误所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。