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;

}

}

相关推荐
JaguarJack4 小时前
PHP 图像处理实战 GD/Imagick 从入门到精通,构建高性能图像服务
后端·php
偷光6 小时前
浏览器中的隐藏IDE: Elements (元素) 面板
开发语言·前端·ide·php
能工智人小辰15 小时前
Coordinate Attention for Efficient Mobile Network Design 学习笔记
笔记·学习·php
应用市场15 小时前
自建本地DNS过滤系统:实现局域网广告和垃圾网站屏蔽
开发语言·php
星如雨落20 小时前
Linux VScode 安装PHP环境
linux·php·visual studio code
宁小法1 天前
PHP 数组 如何将新元素加到数组第一个位置(支持指定key => value)
php·数组·首个元素
运维闲章印时光1 天前
网络断网、环路、IP 冲突?VRRP+MSTP+DHCP 联动方案一次性解决
运维·服务器·开发语言·网络·php
板鸭〈小号〉1 天前
Socket网络编程(1)——Echo Server
开发语言·网络·php
kjl5365662 天前
Redis配置文件(redis.conf)
redis·bootstrap·php
東雪蓮☆2 天前
LNMP 环境部署 WordPress
linux·运维·mysql·nginx·php