后台地址:/admin/login.php,用户名密码均为admin

环境要求:PHP、Mysql、Nginx/Apache,搭建方法自行选择,这里使用宝塔演示。

—————————————————-

伪静态设置

#Apache,编辑.htaccess文件,将本地地址修改成自己的域名,比如:
RewriteEngine on
RewriteRule ^about about.php [L]
RewriteRule ^api-about api-about.php [L]
RewriteRule ^contact contact.php [L]
RewriteRule ^tos tos.php [L]
RewriteRule ^([^/.]+)/?$ link.php?id=$1 [L]
RewriteRule ^404 404.php [L]
Options -Indexes

#Nginx,点击域名设置-伪静态,然后将下面例子的域名改成自己的,再复制进去,例子:
rewrite ^/about /about.php last;
rewrite ^/api-about /api-about.php last;
rewrite ^/contact /contact.php last;
rewrite ^/tos /tos.php last;
rewrite ^/([^/.]+)/?$ /link.php?id=$1 last;
rewrite ^/404 /404.php last;

—————————————————-

发表评论

后才能评论