源码介绍
环境: php5.5左右吧+mysql
先导入数据库文件db/db.sql
再修改config.php数据库配置
然后服务器设置好伪静态规则
访问网站OK
Nginx伪静态规则 rewrite ^/index.html$ /index.php; rewrite ^/about.html$ /about.php; rewrite ^/search.html$ /search.php; rewrite ^/apply.html$ /apply.php; rewrite ^/404.html$ /404.php; rewrite ^/sort([1-9]+[0-9]*).html$ /sort.php?id=; rewrite ^/sort([a-zA-Z]+).html$ /sort.php?alias=; rewrite ^/site-([1-9]+[0-9]*).html$ /site.php?id=; 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 ^apply\.html apply\.php [L,NC] RewriteRule ^404\.html 404\.php [L,NC] RewriteRule ^sort([0-9]+)\.html sort\.php?id= [L,NC] RewriteRule ^sort([a-zA-Z]+)\.html sort\.php?alias= [L,NC] RewriteRule ^site-([0-9]+)\.html site\.php?id= [L,NC]
源码介绍



© 版权声明
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长118194359@qq.com!
2. 分享目的仅供学习和交流,下载后请在24小时内删除!
3. 严禁非法商业使用和违反国家法律,后果自负!
4. 本站提供的资源仅包含源码、模板、插件等,不提供技术服务,敬请理解!
5. 如有下载链接失效、无法下载或存在广告,请联系管理员处理!
6. 本站资源售价只是赞助,用于维持日常运营所需费用!
7. 如遇到加密压缩包,请使用WINRAR解压,解压遇到问题请联系管理员!
8. 源码未经详细测试和修改,请使用前自行甄别,无法分辨病毒和误报的部分源码。
9. 源码为可复制产品,不提供退款。
THE END
- 最新
- 最热
只看作者