zoukankan      html  css  js  c++  java
  • 解决thinkphp在开发环境下文件模块找不到的问题

    win10系统下,phpstudy开发环境下小问题描述:

    找不到public公共模块。

    Not Found

    The requested URL /public/admin/login.html was not found on this server.

    原因分析:

    找不到模块的原因是 win10系统下,php访问方式为 php-cgi模式,path_info模式没有生效。

    解决方法,在public 文件下面修改 .htaccess配置即可。

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    
    # mod_fcgid & php-cgi RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1] # php5apache2_2.dll #RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] </IfModule>
  • 相关阅读:
    IDEA快捷键
    nginx之epoll模型的详细介绍
    Liunx权限修改命令
    小技巧3
    小技巧2
    小技巧1
    Ajax的简单使用
    dubbo
    快速创建虚拟机
    登录和注册功能的实现
  • 原文地址:https://www.cnblogs.com/dongmodify/p/11180502.html
Copyright © 2011-2022 走看看