SiteHub 是一个开源的的网址导航系统,采用 PHP + MySQL 技术开发,拥有独立的安装和后台系统,后台采用 Bootstrip 框架,前台使用响应式界面,自适应各种屏幕。
Nginx/Apache、PHP 5.4+、MySQL 5.6+
src
目录内文件全部上传到网站运行目录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 ^/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.html$ /article.php 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/(.*)$ /favicon.php?url=$1 last;rewrite ^/img/favicon/(.*).png$ /favicon.php?url=$1 last;rewrite ^/img/preview/(.*).png$ /preview.php?url=$1 last;location ~ "^/img/favicon/([^/]+)/?.png$" { try_files /$uri /$uri/ /favicon.php?url=$1;}location ~ "^/img/preview/([^/]+)/?.png$" { try_files /$uri /$uri/ /preview.php?url=$1;}
RewriteEngine OnRewriteBase /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 ^article.html article.php [L,NC]RewriteRule ^apply.html apply.php [L,NC]RewriteRule ^404.html 404.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]
<rewrite> <rules> <rule name="Imported Rule 1"> <match url="^index.html$" ignoreCase="false" /> <action type="Rewrite" url="index.php" /> </rule> <rule name="Imported Rule 2"> <match url="^about.html$" ignoreCase="false" /> <action type="Rewrite" url="about.php" /> </rule> <rule name="Imported Rule 3"> <match url="^ranking.html$" ignoreCase="false" /> <action type="Rewrite" url="ranking.php" /> </rule> <rule name="Imported Rule 4"> <match url="^article.html$" ignoreCase="false" /> <action type="Rewrite" url="article.php" /> </rule> <rule name="Imported Rule 5"> <match url="^apply.html$" ignoreCase="false" /> <action type="Rewrite" url="apply.php" /> </rule> <rule name="Imported Rule 6"> <match url="404.html$" ignoreCase="false" /> <action type="Rewrite" url="404.php" /> </rule> <rule name="Imported Rule 7"> <match url="^search.html$" ignoreCase="false" /> <action type="Rewrite" url="search.php" /> </rule> <rule name="Imported Rule 8"> <match url="^category-(.*).html$" ignoreCase="false" /> <action type="Rewrite" url="category.php?id={R:1}" appendQueryString="false" /> </rule> <rule name="Imported Rule 9"> <match url="^category-(.*).html$" ignoreCase="false" /> <action type="Rewrite" url="category.php?alias={R:1}" appendQueryString="false" /> </rule> <rule name="Imported Rule 10"> <match url="^site-(.*).html$" ignoreCase="false" /> <action type="Rewrite" url="site.php?id={R:1}" appendQueryString="false" /> </rule> <rule name="Imported Rule 11"> <match url="^article-list-(.*).html$" ignoreCase="false" /> <action type="Rewrite" url="article_list.php?id={R:1}" appendQueryString="false" /> </rule> <rule name="Imported Rule 12"> <match url="^article-(.*).html$" ignoreCase="false" /> <action type="Rewrite" url="article_show.php?id={R:1}" appendQueryString="false" /> </rule> </rules></rewrite>
下载地址:https://wuzuhua.cn/1678.html
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。