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;

}

}

相关推荐
云游云记10 小时前
PHP 汉字转拼音扩展包:overtrue/pinyin 全面指南
php·overtrue/pinyin
有代理ip11 小时前
成功请求的密码:HTTP 2 开头响应码深度解析
java·大数据·python·算法·php
小白学大数据14 小时前
实测数据:多进程、多线程、异步协程爬虫速度对比
开发语言·爬虫·python·php
会开花的二叉树15 小时前
Reactor网络库的连接管理核心:Connection类
开发语言·网络·php
木子啊16 小时前
PHP中间件:ThinkCMF 6.x核心利器解析
开发语言·中间件·php
Big Cole17 小时前
PHP面试题(核心基础篇:垃圾回收+自动加载)
android·开发语言·php
Diros1g18 小时前
ubuntu多网卡网络配置
网络·ubuntu·php
catchadmin18 小时前
PHP 现在可以零成本构建原生 iOS 和 Android 应用 NativePHP for Mobile v3 发布
android·ios·php
子木鑫18 小时前
[SUCTF 2019] CheckIn1 — 利用 .user.ini 与图片马构造 PHP 后门并绕过上传检测
android·开发语言·安全·php
JSON_L19 小时前
使用 SQLite 创建数据库和表
数据库·sqlite·php