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;

}

}

相关推荐
Lhappy嘻嘻10 小时前
Java IO|File 文件操作 + 字节流 / 字符流完整笔记 + 递归删除文件实战
java·笔记·php
2601_9637713712 小时前
How to Scale Your WordPress Store Traffic in 2026
前端·php·plugin
右耳朵猫AI16 小时前
PHP周刊2026W28 | 安全更新、Laravel 13.18、Twig 3.28
开发语言·php·laravel
罗政16 小时前
PDF 批量合并工具:本地 AI 自动排序、识别正文日期与合同编号
数据库·pdf·php
糖果店的幽灵18 小时前
安全测试从入门到精通_网络基础与HTTPS
网络·https·php
2601_9637713719 小时前
WordPress SEO Guide: Boost Rankings Without Technical Jargon
前端·php
日取其半万世不竭1 天前
CS2 服务器搜不到?GSLT、端口和启动参数逐项检查
运维·服务器·php
360智汇云1 天前
一次Redis超时引发的“冤案“
数据库·redis·php
ljs6482739511 天前
Linux 网络常用命令与端口基础详解
linux·网络·php
m0_738120722 天前
PHP代码审计基础——超全局变量(三)
开发语言·安全·网络安全·php