我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

没有PHP清理网址

I used .htaccess to remove the file extensions on my webpage. I have deleted htaccess on my root folder on my website but a url like www.mywebsite.com/dashboard rewrites to www.mywebsite.com/dashboard.php

Is there anyway that the web server has cached the .htaccess file?

No it is because of MultiViews:

Options MultiViews

Try adding this line in your .htaccess to stop this behavior:

Options -MultiViews

近期文章

  • 文件获取内容preg_match
  • 而循环过滤器类别
  • 文件夹递归:何时返回?
  • 如何设置CURLINFO_HTTP_CODE
  • PHP中的JSON产品查看器[关闭]
  • 更改函数内的函数参数
  • 将Wordpress会话转换为用户ID
  • Cakephp错误:找不到身份验证适配器“xmlRpc”
  • 由于时间问题导致自动导入的ShipStation问题?
  • 在我的sql中使用Distinct和Sum
  • Php / Mysql如何用post插入当前用户
  • 如何从顶部列表中排除某些名称
  • 会话用户名仅在使用按钮后有效
  • php中的多个数组函数调用未按预期返回
  • 将页眉和页脚codeigniter添加到控制器
  • 需要格式化日期
  • Facebook分享错误
  • 会员数据库 - 全部显示?
  • 上传文件并保存
  • Python应用程序向服务器发送获取链接,获得200 OK响应,但服务器脚本不执行

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华