<bdo id='gaoV8'></bdo><ul id='gaoV8'></ul>
      1. <legend id='gaoV8'><style id='gaoV8'><dir id='gaoV8'><q id='gaoV8'></q></dir></style></legend>
        <tfoot id='gaoV8'></tfoot>

      2. <i id='gaoV8'><tr id='gaoV8'><dt id='gaoV8'><q id='gaoV8'><span id='gaoV8'><b id='gaoV8'><form id='gaoV8'><ins id='gaoV8'></ins><ul id='gaoV8'></ul><sub id='gaoV8'></sub></form><legend id='gaoV8'></legend><bdo id='gaoV8'><pre id='gaoV8'><center id='gaoV8'></center></pre></bdo></b><th id='gaoV8'></th></span></q></dt></tr></i><div id='gaoV8'><tfoot id='gaoV8'></tfoot><dl id='gaoV8'><fieldset id='gaoV8'></fieldset></dl></div>
      3. <small id='gaoV8'></small><noframes id='gaoV8'>

      4. .htaccess 不适用于 xampp(Windows 7)

        .htaccess doesn#39;t work on xampp (windows 7)(.htaccess 不适用于 xampp(Windows 7))
        <legend id='Onqe3'><style id='Onqe3'><dir id='Onqe3'><q id='Onqe3'></q></dir></style></legend>

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

            1. <tfoot id='Onqe3'></tfoot>

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

                  本文介绍了.htaccess 不适用于 xampp(Windows 7)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我现在正在设置我的 .htaccess 文件以使用 friendly urls(手动).但是,当我转到 url 时,服务器会显示 Error 404.

                  I'm setting my .htaccess file right now to use friendly urls (manually). But, when i go to the url the server shows me Error 404.

                  RewriteEngine on
                  
                  RewriteCond %{SCRIPT_FILENAME} !-d  
                  RewriteCond %{SCRIPT_FILENAME} !-f  
                  
                  Rewriterule ^register$ register.php 
                  

                  我很确定 mod_rewrite 已启用,因为我在使用 phpinfo() 时看到了它.

                  I'm really sure that mod_rewrite is enabled because i see it when use phpinfo().

                  推荐答案

                  即使 mod-rewrite 已启用,默认情况下 .htaccess 文件并未启用.

                  Even though mod-rewrite is enabled, by default it is not enabled for .htaccess files.

                  屏住呼吸

                  • 打开xampp控制面板
                  • 停止 Apache
                  • 单击 Apache 行上的 Config 按钮,然后选择 httpd.conf
                  • 在该文件中,搜索类似 xampp/htdocs">
                  • 再低一点,你可能会看到这样的一行:# AllowOverride All.去掉#,这是一个注释
                  • 或者,搜索 AllowOverride All,确保它在正确的部分,然后删除注释 #
                  • 保存文件
                  • 重启 Apache,祈祷,交叉手指,屏住呼吸
                  • Open xampp control panel
                  • Stop Apache
                  • Click the Config button on the Apache row, and select httpd.conf
                  • In that file, search for something like xampp/htdocs">
                  • A bit lower, you may see a line like this: # AllowOverride All. Remove the #, which is a comment
                  • Alternately, search for AllowOverride All, make sure it is in the right section, and remove the comment #
                  • Save the file
                  • Restart Apache, say a prayer, cross your fingers and hold your breath

                  这篇关于.htaccess 不适用于 xampp(Windows 7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Converting string to MySQL timestamp format in php(在php中将字符串转换为MySQL时间戳格式)
                  datetime to timestamp(日期时间到时间戳)
                  PHP timestamp date to user timezone(PHP时间戳日期到用户时区)
                  Converting TIMESTAMP to unix time in PHP?(在 PHP 中将 TIMESTAMP 转换为 unix 时间?)
                  Convert ISO 8601 to unixtimestamp(将 ISO 8601 转换为 unixtimestamp)
                  Finding days between 2 unix timestamps in php(在php中查找2个unix时间戳之间的天数)

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

                          • <tfoot id='50oGh'></tfoot>
                              <tbody id='50oGh'></tbody>

                            <small id='50oGh'></small><noframes id='50oGh'>

                            <legend id='50oGh'><style id='50oGh'><dir id='50oGh'><q id='50oGh'></q></dir></style></legend>