易企秀如何开启伪静态支持? 一秀如何开启伪静态? php
oschina: http://git.oschina.net/jsper/html5Editorhtml
ewesambo.sql
修改html5Editor项目下的配置文件:
修改systemConfig.php的内容,数据库地址,数据库库名,用户名和密码
html5
在html5Editor根目录下编写重定向文件.htaccess文件,文件内容以下:mysql
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
server {
listen 80;
server_name wanqi520.cn; # 这里换成你本身的域名
# 下面的if语句是为了支持thinkphp的重定向,URL_MODE使用的是2
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
#if
# 下面的语句制定html5Editor的根目录
root /usr/local/nginx/html;
index index.php;
charset utf-8;
#include /usr/local/nginx/html/.htaccess;
location ~ \.php$ {
fastcgi_index index.php;
# fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /phpmyadmin { root /data/www/phpmyadmin;
index index.php;
}
location ~ /phpmyadmin/.+\.php$ {
if ($fastcgi_script_name ~ /phpmyadmin/(.+\.php.*)$) {
set $valid_fastcgi_script_name $1;
}
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME /data/www/phpmyadmin/$valid_fastcgi_script_name;
}
}