yii laravel ci 各种开源框架伪静态配置

admin 2019-09-18 291 阅读 0评论


Nginx 添加以下配置内容


location / {

index  index.html index.htm index.php;

#autoindex  on;

try_files $uri $uri/ /index.php?$args;

}


Apache 配置

在 .htaccess 写入以下内容

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ /index.php/$1 [L]


发表评论

快捷回复: 表情:
Addoil Applause Badlaugh Bomb Coffee Fabulous Facepalm Feces Frown Heyha Insidious KeepFighting NoProb PigHead Shocked Sinistersmile Slap Social Sweat Tolaugh Watermelon Witty Wow Yeah Yellowdog
提交
评论列表 (有 0 条评论, 291人围观)