.htaccess
<IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine On RewriteRule ^index\.html$ / [R=301,L] RewriteRule ^\?$ / [R=301,L] RewriteRule ^procate-([0-9]+)\.html$ /index.php?s=/product/index/cate_id/$1.html [NC,L] RewriteRule ^procate-([0-9]+)-([0-9]+)\.html$ /index.php?s=/product/index/cate_id/$1/child_id/$2.html [NC,L] RewriteRule ^product_cate-([0-9]+)\.html$ /index.php?s=/product/index/cate_id/$1.html [NC,L] RewriteRule ^product-([0-9]+)\.html$ /index.php?s=/product/detail/id/$1.html [NC,L] RewriteRule ^zyry-([0-9]+)\.html$ /index.php?s=/zyry/detail/id/$1.html [NC,L] RewriteRule ^zyry\.html$ /index.php?s=/zyry/index.html [NC,L] RewriteRule ^cont-([0-9]+)\.html$ /index.php?s=/article/sysdetail/id/$1.html [NC,L] RewriteRule ^map\.html$ /index.php?s=/article/map.html [NC,L] RewriteRule ^hangye-([0-9]+)\.html$ /index.php?s=/hangye/detail/id/$1.html [NC,L] RewriteRule ^appcate-([0-9]+)\.html$ /index.php?s=/shangpin/index/cate_id/$1.html [NC,L] RewriteRule ^app-([0-9]+)\.html$ /index.php?s=/shangpin/detail/id/$1.html [NC,L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?$1 [QSA,PT,L] </IfModule>
成功的秘诀,在永不改变既定的目的~
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 25岁的心里话
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现