codecamp
Notadd Nginx/Apache/Caddy

Nginx 配置

location / {
    try_files $uri $uri/ /index.php?$query_string;
}

Apache 配置

Apache 下一般public(服务器)/根目录(虚拟主机) 下都有附带的 .htaccess 文件, 如果在你的Apache环境中不起作用,请尝试下面这个版本:

Options +FollowSymLinks
RewriteEngine On


RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

caddy 配置

fastcgi / localhost:9000 php {
    index index.php
}

To handle .html extensions with laravel change ext to

# ext / .html

rewrite { r .* ext / to /index.php?{query} }

Notadd 环境要求
Notadd 编译安装
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

技术规范

API 结构

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }