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;

}

}

相关推荐
catchadmin11 小时前
PHP Fiber 优雅协作式多任务
后端·php
DanB2411 小时前
Java(网络编程)
java·网络·php
龙泉寺天下行走13 小时前
[PowerShell 入门教程] 第9.5天(间章):PowerShell 常见 Cmdlet 速查手册
开发语言·php
用户6073203694513 小时前
PHP header already sent:中文乱码、BOM、空格导致的全套解决方案(图文版)
php
牛奔15 小时前
php 8.2 配置安装php-zbarcode扩展
android·开发语言·php
n***s90915 小时前
ThinkPHP和PHP的区别
开发语言·php
码农运营16 小时前
PayPal 支付效果
php
霸王大陆16 小时前
《零基础学 PHP:从入门到实战》教程-模块四:数组与函数-2
android·开发语言·php
济南壹软网络科技有限公司16 小时前
沉浸式体验革命:壹软科技2025新版盲盒源码前端3D渲染与个性化运营技术解析
前端·科技·uni-app·开源·php·盲盒源码
霸王大陆16 小时前
《零基础学 PHP:从入门到实战》教程-模块四:数组与函数-1
android·开发语言·php