# lovewall **Repository Path**: nexmoe/lovewall ## Basic Information - **Project Name**: lovewall - **Description**: 趁青春 - **Primary Language**: PHP - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-11-27 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 伪静态 #### Apache RewriteEngine On RewriteBase / RewriteRule ^mous/page/(.*)$ /index.php?mous=&page=$1 RewriteRule ^mous/(.*)/page/(.*)$ /index.php?mous=$1&page=$2 RewriteRule ^mous/(.*)$ /index.php?mous=$1&page=1 RewriteRule ^pages/(.*)$ /index.php?pages=$1 #### Nginx rewrite ^/mous/page/(.*)$ /index.php?mous=&page=$1; rewrite ^/mous/(.*)/page/(.*)$ /index.php?mous=$1&page=$2; rewrite ^/mous/(.*)$ /index.php?mous=$1&page=1; rewrite ^/pages/(.*)$ /index.php?pages=$1; ## 数据库说明 #### 导入数据库 先将根目录内的 options.sql 和 contents.sql 导入数据库 #### 连接数据库 在 /require/function.php 第三行 更改为自己的数据库信息 'mysql'=>'localhost', //数据库地址 'name'=>'root', //数据库登录名 'password'=>'', //数据库密码 'dbname'=>'lovewall' //数据库名