ICode9

精准搜索请尝试: 精确搜索
  • 2022-09-01 网站强制ctrl+f5刷新报错,只按f5刷新不报错,报错内容为443,但真实报错代码为4042022-09-02 09:30:08

    报错内容: Not Found The requested URL /mall was not found on this server. Apache Server at xxx.yyy.com Port 443描述:如题。解决方案:在网站根目录添加一个文件.htaccess内容为:  <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index

  • 伪静态 记录备用2022-08-18 00:32:56

    Options +FollowSymLinks IndexIgnore */* RewriteEngine on # 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 SetEnvIf Au

  • 解决报错404“Not Found”2022-07-18 11:10:30

    problem:    再点击其他所有链接都报404错误(NOT FOUND  The requested URL was not found on this server) 一开始认为是服务器配置出了问题  于是开始搞配置文件  重启apache   甚至重启服务器  但都于事无补   最后突然看到一篇文章说是网站少了  重写文件.htacces这

  • ThinkPHP The requested URL /admin/index/login.html was not found on this server.2022-06-04 12:00:10

    1.创建网站到入口文件目录public下  使用工具phpstudy(工具不限)   2.ThinkPHP报错 The requested URL /admin/index/login.html was not found on this server.  在入口文件夹public下查看.htaccess是否存在。不存在则新建,存在的话,那内容替换为下面这串代码 就可以解决Not F

  • 若依 前端框架部署 apache 代替nginx的try_file2022-05-18 18:02:01

    ngin是这样的 location / { try_files $uri $uri/ /index.html; index index.html index.htm; } apache是这样的 <Directory "/www/wwwroot/XXX.com"> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FIL

  • fastadmin Apache隐藏应用入口文件index.php2022-04-28 16:00:26

    在public下新建文件.htaccess在其中书写 <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?s=/$1 [QSA,PT,L] </IfModule&

  • apache .htaccess配置去掉index.php2022-04-28 01:31:06

    httpd.conf增加LoadModule rewrite_module modules/mod_rewrite.so .htaccess<IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index

  • htaccess如何配置隐藏index.php文件2022-03-18 19:35:45

    <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] </IfModule> 这个是在tp框架用的 <IfModule

  • CI框架3.x 之隐藏index.php2022-02-17 09:04:36

    1、配置.htaccess <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] </IfModule> 2、将.htaccess文件上传到项目根目

  • TP5隐藏index.php2022-01-31 00:00:07

    tp5对URL简化,不做简化情况下我们访问的是localhost/index.php/index/index/index ,做简化后省去index.php。 我们需要找到public下面的.htaccess文件 apache: <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_

  • htaccess如何配置隐藏index.php文件2021-12-16 16:34:59

    <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModule> RewriteEngine On # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)

  • 2.人人站CMS安装常见问题汇总(第三课)(万网主机安装)2021-12-11 11:02:26

    用cuteFtp工具上传后安装报错。     大家遇到这个问题,首先在主机目录中找 .env文件;如果找不到一般是因为cuteFTP等FTP将此类 “.”开头的文件给自动删除了 导致系统找不到配置文件 所以安装失败了。大家遇到这种情况可以换WinSCP等FTP进行重新上传安装问题就解决了。  也可

  • php - .htaccess在Windows上工作,但是在ubuntu的apache2上不工作2021-12-10 10:00:23

    我在Windows的XAMPP中使用以下htaccess代码,效果很好。但是,相同的代码在Ubuntu Apache2上不起作用,   RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]+)/([^/]+)/?$ /?cmd=$1&caseSno=$2 [NC,L] RewriteRule ^(

  • Apache服务2021-12-07 19:00:11

    1.网站服务程序         提供web服务的程序有Apache,Nginx,llS等         llS                 llS是windows系统中的默认Web服务程序,是一款图形化的web服务管理工具,但只能在windows系统中使用         Nginx                 Nginx是为俄罗斯的

  • phpstudy 配置tp 5.1 无法隐藏index.php 访问2021-09-24 16:34:05

    我用的是集成服务环境phpstudy  框架thinkphp 5.1  我按照开发手册进行配置,隐藏index.php  访问时,出现 “No input file specified.” 配置过程:     1.更改apache服务器配置文件httpd.conf          去掉 “mod_rewrite.so” 前面的#     2. “AllowOverride None

  • phpstudyV8部署thinkphp6首页能打开其它页面4042021-09-10 11:34:13

    nginx nginx404是因为少了下面这段 if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; break; } 复制到你的域名下 apache 这个原因是因为phpstudy会覆盖项目public下的.htaccess文件 所以找到原来的内容用同样的方式添加下面的伪静态即可 <IfModul

  • [学习]Apache 虚拟域名配置2021-09-09 15:34:40

    Apache 虚拟域名配置 下面代码中#表示注释: # 新版本的Apache已经不需要写NameVirtualHost *:80了 NameVirtualHost *:80 # 虚拟域名配置块, *:80 表示接受任何ip的80端口访问 <VirtualHost *:80> # 项目根目录 DocumentRoot "D:/wamp/www

  • Thinkphp中出现 No input file specified2021-08-31 16:04:41

    Thinkphp3.2.3模板输出中出现 No input file specified   查了网上很多资料  最终解决办法   解决办法很简单如下: 打开.htaccess 在RewriteRule 后面的index.php教程后面添加一个“?” 原来的代码如下 <IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine On

  • 本地apache+mysql5.7还原WordPress报错no input file specified2021-07-28 10:06:18

    修改数据库 打开wp_options表,修改siteurl和home两个字段的值,修改为现在的URL。 写入.htaccess文件伪静态 写入如下内容: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQU

  • Centos7 Thinkphp5.1 伪静态2021-07-19 14:34:48

    以下均测试通过 nginx location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=$1 last; break; } } apached <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d Re

  • Laravel通过JWT登陆可以获取token,me方法却无法获取用户信息,原因是:Apache Authorization 头信息为空2021-07-03 14:54:33

    解决方法,修改项目的入口目录下.htaccess文件,添加如下代码 SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1  完整代码 <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUE

  • tp5在本地apache环境下实现防盗链2021-06-10 15:32:49

    1、找到public目录下的.htaccess文件 <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] RewriteCond %{SCRIPT_FILEN

  • 报错No Input file specified2021-05-27 09:52:13

    apache重写模式错误导致RewriteCond %{REQUEST_FILENAME} !-d  RewriteCond %{REQUEST_FILENAME} !-f  RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]改成RewriteCond %{REQUEST_FILENAME} !-d  RewriteCond %{REQUEST_FILENAME} !-f  RewriteRule ^(.*)$ index.php?s=$1 [QSA,

  • Apache优化之---防盗链2021-05-15 22:04:52

    注:Apache优化全程使用yum 安装httpd 何为防盗链,如 源网站 www.aaa.com 内有一个图片地址为 www.aaa.com/1.jpg 盗链网 www.bbb.com 发布文章时盗用 www.aaa.com/1.jpg 图片及被盗走使用(可能被盗走做非法行为,)所以我们使用防盗链技术使我们的图片不允许别的网站引用。接下来实操

  • TP6框架--EasyAdmin学习笔记:项目初始化+环境配置2021-05-14 16:02:36

    最近在研究一个基于TP6的框架EasyAdmin,这里分享下我的开发心得 首先要获取原始项目文件 这里是git地址 https://github.com/zhongshaofa/easyadmin 项目环境的要求为Apache、MySQL、PHP这里首推phpstudy(小皮助手),可以快捷搭配文件及多站点。 下载链接 https://www.xp.cn/downl

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有