简介:
我爱导航系统源码 Pro版 | 网址导航系统 二次开发美化
基于SiteHub二次开发的开源免费的网址导航系统,拥有独立前台和拟态风格的后台管理中心。
我爱导航系统集合网上优质网站网址导航,支持前台自主提交收录、自动获取TDK与网站Icon与后端审核管理,涵盖网站收录和文章发布等。
运行环境 Nginx/Apache、PHP建议7.4、MySQL 5.6+
访问域名进行安装操作
🔹Nginx 伪静态规则
# 基础页面
rewrite ^/index.html$ /index.php last;
rewrite ^/about.html$ /about.php last;
rewrite ^/search.html$ /search.php last;
rewrite ^/ranking.html$ /ranking.php last;
rewrite ^/apply.html$ /apply.php last;
rewrite ^/404.html$ /404.php last;
rewrite ^/article.html$ /article.php last;
# 分类
rewrite ^/category-([1-9][0-9]*).html$ /category.php?id=$1 last;
rewrite ^/category-([a-zA-Z]+).html$ /category.php?alias=$1 last;
# 站点详情
rewrite ^/site-([1-9][0-9]*).html$ /site.php?id=$1 last;
# 文章列表与详情
rewrite ^/article-list-([1-9][0-9]*).html$ /article_list.php?id=$1 last;
rewrite ^/article-([1-9][0-9]*).html$ /article_show.php?id=$1 last;
# 图片伪静态
rewrite ^/img/favicon/(.*)\.png$ /favicon.php?url=$1 last;
rewrite ^/img/preview/(.*)\.png$ /preview.php?url=$1 last;
# 更推荐的写法:使用 try_files
location ~ "^/img/favicon/([^/]+)\.png$" {
try_files $uri /favicon.php?url=$1;
}
location ~ "^/img/preview/([^/]+)\.png$" {
try_files $uri /preview.php?url=$1;
}
🔹Apache 伪静态规则
RewriteEngine On
RewriteBase /
# 基础页面
RewriteRule ^index.html$ index.php [L,NC]
RewriteRule ^about.html$ about.php [L,NC]
RewriteRule ^search.html$ search.php [L,NC]
RewriteRule ^ranking.html$ ranking.php [L,NC]
RewriteRule ^apply.html$ apply.php [L,NC]
RewriteRule ^404.html$ 404.php [L,NC]
RewriteRule ^article.html$ article.php [L,NC]
# 分类
RewriteRule ^category-([0-9]+)\.html$ category.php?id=$1 [L,NC]
RewriteRule ^category-([a-zA-Z]+)\.html$ category.php?alias=$1 [L,NC]
# 站点详情
RewriteRule ^site-([0-9]+)\.html$ site.php?id=$1 [L,NC]
# 文章列表与详情
RewriteRule ^article-list-([0-9]+)\.html$ article_list.php?id=$1 [L,NC]
RewriteRule ^article-([0-9]+)\.html$ article_show.php?id=$1 [L,NC]
# 图片伪静态
RewriteRule ^img/favicon/(.*)\.png$ favicon.php?url=$1 [L,NC]
RewriteRule ^img/preview/(.*)\.png$ preview.php?url=$1 [L,NC]
前台图片:
后台图片:
© 版权声明
THE END
暂无评论内容