phpstudy配置网站伪静态

apache的伪静态写法:

RewriteEngine On

RewriteCond % {REQUEST_FILENAME} !-f

RewriteCond % (REQUEST_FILENAME) !-d

RewriteRule ^(.*) indexp?/1 [QSA, PT,L]

nginx写法:

location / {

index index.html index.php;

#autoindex on;

if(!-e&request_filename){

rewrite ^(.*)% /index.php?s=/$1 last;

break;

}

}

相关推荐
ICT董老师14 小时前
通过kubernetes部署nginx + php网站环境
运维·nginx·云原生·容器·kubernetes·php
bleach-15 小时前
buuctf系列解题思路祥讲--[SUCTF 2019]CheckIn1--文件上传以及user.ini的应用
nginx·web安全·网络安全·php
BingoGo16 小时前
免费可商用商业级管理后台 CatchAdmin V5 正式发布 插件化与开发效率的全面提升
vue.js·后端·php
AI 智能服务1 天前
第6课__本地工具调用(文件操作)
服务器·人工智能·windows·php
松涛和鸣1 天前
49、智能电源箱项目技术栈解析
服务器·c语言·开发语言·http·html·php
晚枫歌F1 天前
io_uring的介绍和实现
开发语言·php
Tisfy1 天前
网站访问耗时优化 - 从数十秒到几百毫秒的“零成本”优化过程
服务器·开发语言·性能优化·php·网站·建站
xifangge20251 天前
PHP 错误日志在哪里看?Apache / Nginx / PHP-FPM 一次讲清
nginx·php·apache
ShoreKiten2 天前
ctfshow-web257【保姆级wp】
php·web
chilavert3182 天前
技术演进中的开发沉思-303计算机原理:加密基础
开发语言·算法·php·计算机原理