SiteHub 网址导航系统

本文阅读 3 分钟
首页 源码分享 正文

SiteHub 是一个开源的的网址导航系统,采用 PHP + MySQL 技术开发,拥有独立的安装和后台系统,后台采用 Bootstrip 框架,前台使用响应式界面,自适应各种屏幕。

预览截图

后台功能

支持修改网站信息
支持修改管理员信息
支持修改网站素材,如 logo/favicon 图标/微信二维码 等图片
支持添加/修改/删除导航
支持添加/修改/删除分类
支持添加/修改/删除站点
支持审核/删除站点申请
支持发布/修改/删除公告
支持添加/修改/删除友情链接

前台特色

所有分类下的站点
单个分类下的站点
各站点详情页
分类滚动定位
记录各站点浏览数
点赞功能(单个 ip 单个站点只能点赞一次)
站点详情页显示站点缩略图
站点炫酷跳转页
右下角悬浮按扭(去顶部/qq/邮箱/微信二维码)
搜索功能(支持搜索站点名称/站点链接/站点简介)
访客申请站点收录功能
关于我们页面
站点图片懒加载
分类/站点链接别名
网站 Favicon 图标接口缓存

运行环境

Nginx/Apache、PHP 5.4+、MySQL 5.6+

部署方法

将 src 目录内文件全部上传到网站运行目录
访问网址 http://你的网站地址/install/
按照页面引导,输入数据库帐号及密码信息,提交安装
默认后台地址:http://你的网站地址/admin/,默认账号:admin,默认密码:123456
然后服务器设置好伪静态规则
访问网站 OK

伪静态配置规则

Nginx 伪静态规则

  1. rewrite ^/index.html$ /index.php last;
  2. rewrite ^/about.html$ /about.php last;
  3. rewrite ^/search.html$ /search.php last;
  4. rewrite ^/ranking.html$ /ranking.php last;
  5. rewrite ^/apply.html$ /apply.php last;
  6. rewrite ^/404.html$ /404.php last;
  7. rewrite ^/category-([1-9]+[0-9]*).html$ /category.php?id=$1 last;
  8. rewrite ^/category-([a-zA-Z]+).html$ /category.php?alias=$1 last;
  9. rewrite ^/site-([1-9]+[0-9]*).html$ /site.php?id=$1 last;
  10. rewrite ^/article.html$ /article.php last;
  11. rewrite ^/article-list-([1-9]+[0-9]*).html$ /article_list.php?id=$1 last;
  12. rewrite ^/article-([1-9]+[0-9]*).html$ /article_show.php?id=$1 last;
  13. rewrite ^/img/favicon/(.*)$ /favicon.php?url=$1 last;
  14. rewrite ^/img/favicon/(.*).png$ /favicon.php?url=$1 last;
  15. rewrite ^/img/preview/(.*).png$ /preview.php?url=$1 last;
  16. location ~ "^/img/favicon/([^/]+)/?.png$" {
  17. try_files /$uri /$uri/ /favicon.php?url=$1;
  18. }
  19. location ~ "^/img/preview/([^/]+)/?.png$" {
  20. try_files /$uri /$uri/ /preview.php?url=$1;
  21. }

Apache 伪静态规则

  1. RewriteEngine On
  2. RewriteBase /
  3. RewriteRule ^index.html index.php [L,NC]
  4. RewriteRule ^about.html about.php [L,NC]
  5. RewriteRule ^search.html search.php [L,NC]
  6. RewriteRule ^ranking.html ranking.php [L,NC]
  7. RewriteRule ^article.html article.php [L,NC]
  8. RewriteRule ^apply.html apply.php [L,NC]
  9. RewriteRule ^404.html 404.php [L,NC]
  10. RewriteRule ^category-([0-9]+).html category.php?id=$1 [L,NC]
  11. RewriteRule ^category-([a-zA-Z]+).html category.php?alias=$1 [L,NC]
  12. RewriteRule ^site-([0-9]+).html site.php?id=$1 [L,NC]
  13. RewriteRule ^article-list-([0-9]+).html article_list.php?id=$1 [L,NC]
  14. RewriteRule ^article-([0-9]+).html article_show.php?id=$1 [L,NC]
  15. RewriteRule ^img/favicon/(.*)\.png$ favicon.php?url=$1 [L,NC]
  16. RewriteRule ^img/preview/(.*)\.png$ preview.php?url=$1 [L,NC]

IIS 伪静态规则

  1. <rewrite>
  2. <rules>
  3. <rule name="Imported Rule 1">
  4. <match url="^index.html$" ignoreCase="false" />
  5. <action type="Rewrite" url="index.php" />
  6. </rule>
  7. <rule name="Imported Rule 2">
  8. <match url="^about.html$" ignoreCase="false" />
  9. <action type="Rewrite" url="about.php" />
  10. </rule>
  11. <rule name="Imported Rule 3">
  12. <match url="^ranking.html$" ignoreCase="false" />
  13. <action type="Rewrite" url="ranking.php" />
  14. </rule>
  15. <rule name="Imported Rule 4">
  16. <match url="^article.html$" ignoreCase="false" />
  17. <action type="Rewrite" url="article.php" />
  18. </rule>
  19. <rule name="Imported Rule 5">
  20. <match url="^apply.html$" ignoreCase="false" />
  21. <action type="Rewrite" url="apply.php" />
  22. </rule>
  23. <rule name="Imported Rule 6">
  24. <match url="404.html$" ignoreCase="false" />
  25. <action type="Rewrite" url="404.php" />
  26. </rule>
  27. <rule name="Imported Rule 7">
  28. <match url="^search.html$" ignoreCase="false" />
  29. <action type="Rewrite" url="search.php" />
  30. </rule>
  31. <rule name="Imported Rule 8">
  32. <match url="^category-(.*).html$" ignoreCase="false" />
  33. <action type="Rewrite" url="category.php?id={R:1}" appendQueryString="false" />
  34. </rule>
  35. <rule name="Imported Rule 9">
  36. <match url="^category-(.*).html$" ignoreCase="false" />
  37. <action type="Rewrite" url="category.php?alias={R:1}" appendQueryString="false" />
  38. </rule>
  39. <rule name="Imported Rule 10">
  40. <match url="^site-(.*).html$" ignoreCase="false" />
  41. <action type="Rewrite" url="site.php?id={R:1}" appendQueryString="false" />
  42. </rule>
  43. <rule name="Imported Rule 11">
  44. <match url="^article-list-(.*).html$" ignoreCase="false" />
  45. <action type="Rewrite" url="article_list.php?id={R:1}" appendQueryString="false" />
  46. </rule>
  47. <rule name="Imported Rule 12">
  48. <match url="^article-(.*).html$" ignoreCase="false" />
  49. <action type="Rewrite" url="article_show.php?id={R:1}" appendQueryString="false" />
  50. </rule>
  51. </rules>
  52. </rewrite>

解压密码: detechn或detechn.com

免责声明

本站所有资源出自互联网收集整理,本站不参与制作,如果侵犯了您的合法权益,请联系本站我们会及时删除。

本站发布资源来源于互联网,可能存在水印或者引流等信息,请用户自行鉴别,做一个有主见和判断力的用户。

本站资源仅供研究、学习交流之用,若使用商业用途,请购买正版授权,否则产生的一切后果将由下载用户自行承担。

开源多商户SaaS版扫码点餐系统
« 上一篇 05-27
Windows 11 开启 BBR 算法
下一篇 » 05-28

发表评论

惪特博客
  • 文章总数:
    18497 篇
  • 评论总数:
    53327 条
  • 标签总数:
    8873 个
  • 总浏览量:
    22767631 次
  • 最后更新:
    3月27日

最多点赞

随便看看

标签TAG