1. <small id='GtJGb'></small><noframes id='GtJGb'>

    <legend id='GtJGb'><style id='GtJGb'><dir id='GtJGb'><q id='GtJGb'></q></dir></style></legend>
      <tfoot id='GtJGb'></tfoot>

      <i id='GtJGb'><tr id='GtJGb'><dt id='GtJGb'><q id='GtJGb'><span id='GtJGb'><b id='GtJGb'><form id='GtJGb'><ins id='GtJGb'></ins><ul id='GtJGb'></ul><sub id='GtJGb'></sub></form><legend id='GtJGb'></legend><bdo id='GtJGb'><pre id='GtJGb'><center id='GtJGb'></center></pre></bdo></b><th id='GtJGb'></th></span></q></dt></tr></i><div id='GtJGb'><tfoot id='GtJGb'></tfoot><dl id='GtJGb'><fieldset id='GtJGb'></fieldset></dl></div>
      • <bdo id='GtJGb'></bdo><ul id='GtJGb'></ul>
    1. 如何在 Yii 框架中删除 index.php

      How to remove index.php in Yii Framework(如何在 Yii 框架中删除 index.php)

        <tbody id='tEEAQ'></tbody>
      <tfoot id='tEEAQ'></tfoot>
      <i id='tEEAQ'><tr id='tEEAQ'><dt id='tEEAQ'><q id='tEEAQ'><span id='tEEAQ'><b id='tEEAQ'><form id='tEEAQ'><ins id='tEEAQ'></ins><ul id='tEEAQ'></ul><sub id='tEEAQ'></sub></form><legend id='tEEAQ'></legend><bdo id='tEEAQ'><pre id='tEEAQ'><center id='tEEAQ'></center></pre></bdo></b><th id='tEEAQ'></th></span></q></dt></tr></i><div id='tEEAQ'><tfoot id='tEEAQ'></tfoot><dl id='tEEAQ'><fieldset id='tEEAQ'></fieldset></dl></div>
    2. <legend id='tEEAQ'><style id='tEEAQ'><dir id='tEEAQ'><q id='tEEAQ'></q></dir></style></legend>

      • <small id='tEEAQ'></small><noframes id='tEEAQ'>

              • <bdo id='tEEAQ'></bdo><ul id='tEEAQ'></ul>
                本文介绍了如何在 Yii 框架中删除 index.php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                嘿,我是 Yii 框架的新手.我想从我的网址中删除 index.php.按照 yii 文档,当我将重写引擎代码放入我的 .htaccess 文件并在我的 config/main.php 文件中将 showScriptName 设置为 false 时,我收到 500 内部服务器错误.我的 .htaccess 文件位于我的应用程序的根文件夹中.告诉我哪里做错了

                Hey guyz i am a newbie in Yii framework. I want to remove the index.php from my urls. Following the yii documentation when i put the rewrite engine code in my .htaccess file and setting showScriptName to false in my config/main.php file i get the 500 internal server error. My .htaccess file is located in root folder of my application. Tell me where i am doing wrong

                更新:

                这是我的 .htaccess 文件中的代码:

                This is the code in my .htaccess file:

                # if a directory or a file exists, use it directly
                RewriteCond %{REQUEST_FILENAME} !-f
                RewriteCond %{REQUEST_FILENAME} !-d
                
                # otherwise forward it to index.php
                RewriteRule . index.php
                

                推荐答案

                试试这个

                这里有一个很好的描述

                http://www.yiiframework.com/doc/guide/1.1/en/topics.url#hiding-x-23x

                这篇关于如何在 Yii 框架中删除 index.php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Is PHP or PHP based web framework stateful or stateless?(PHP 或基于 PHP 的 Web 框架是有状态的还是无状态的?)
                How to parse django style template tags(如何解析 django 样式模板标签)
                What is a good setup for editing PHP in Emacs?(在 Emacs 中编辑 PHP 的好设置是什么?)
                How to check whether specified PID is currently running without invoking ps from PHP?(如何在不从 PHP 调用 ps 的情况下检查指定的 PID 当前是否正在运行?)
                What#39;s the difference between escapeshellarg and escapeshellcmd?(escapeshellarg 和escapeshellcmd 有什么区别?)
                php in background exec() function(php 后台 exec() 函数)

                • <tfoot id='G9zcI'></tfoot>
                  <legend id='G9zcI'><style id='G9zcI'><dir id='G9zcI'><q id='G9zcI'></q></dir></style></legend>
                    <tbody id='G9zcI'></tbody>
                    <bdo id='G9zcI'></bdo><ul id='G9zcI'></ul>

                    <i id='G9zcI'><tr id='G9zcI'><dt id='G9zcI'><q id='G9zcI'><span id='G9zcI'><b id='G9zcI'><form id='G9zcI'><ins id='G9zcI'></ins><ul id='G9zcI'></ul><sub id='G9zcI'></sub></form><legend id='G9zcI'></legend><bdo id='G9zcI'><pre id='G9zcI'><center id='G9zcI'></center></pre></bdo></b><th id='G9zcI'></th></span></q></dt></tr></i><div id='G9zcI'><tfoot id='G9zcI'></tfoot><dl id='G9zcI'><fieldset id='G9zcI'></fieldset></dl></div>

                      <small id='G9zcI'></small><noframes id='G9zcI'>