365建站器v12隆重发布,全新的界面,全新的体验,全新的功能,您值得佣有! 365建站器v12隆重发布! 立即查看

365建站Apache伪静态规则(宝塔Linux版+Apache)

发表在 新手指南/使用教程 2021-11-21 17:35:28 上一主题 下一主题 0 2874

  1. RewriteEngine On
  2. RewriteBase /
  3. rewritecond %{QUERY_STRING} ^(.*)$
  4. RewriteRule ^(sitemap\.(xml|html)|([\/_A-Za-z0-9]+)sitemap\.(xml|html))$ /index\.php\?typestr=$1
  5. RewriteRule ^((?!zzadmin|phpmyadmin|templets|uploads|data|images|install|source|Plugins|sitemap|index|robots|favicon).*)st-([0-9]+)-([0-9]+).html /index\.php\?act=list&tid=$2&PageNo=$3&typestr=$1
  6. RewriteRule ^((?!zzadmin|phpmyadmin|templets|uploads|data|images|install|source|Plugins|sitemap|index|robots|favicon).*)/class-([0-9]+)-([0-9]+).html /index\.php\?act=list&classid=$2&PageNo=$3&typestr=$1
  7. rewritecond %{QUERY_STRING} ^(.*)$
  8. RewriteRule ^list-([0-9]+)-([0-9]+).html /index\.php\?act=list&tid=$1&PageNo=$2
  9. RewriteRule ^/article_([0-9]+)([\/]*)$ /index\.php\?act=show&aid=$1&typestr=article_
  10. RewriteRule ^((?!zzadmin|phpmyadmin|templets|uploads|data|images|install|source|Plugins|sitemap|index|robots|favicon).*)([_/\-]+)([0-9]+)([\/]*)$ /index\.php\?act=show&aid=$3&typestr=$1
  11. RewriteRule ^((?!zzadmin|phpmyadmin|templets|uploads|data|images|install|source|Plugins|sitemap|index|robots|favicon)[_\-A-Za-z0-9]+)([\/]*)$ /index\.php\?act=list&typestr=$1
  12. RewriteRule ^((?!zzadmin|templets|uploads|data|images|install|source|Plugins|index|robots|favicon)[_\-A-Za-z0-9]+)/([_\-A-Za-z0-9]+)([\/]*)$ /index\.php\?act=list&typestr=$1/$2
  13. RewriteRule ^((?!zzadmin|phpmyadmin|templets|uploads|data|images|install|source|Plugins|sitemap|index|robots|favicon).*)_([A-Za-z0-9]+)\.html$ /index\.php\?act=show&aid=$2&typestr=$1
  14. RewriteRule ^((?!zzadmin|phpmyadmin|templets|uploads|data|images|install|source|Plugins|sitemap|index|robots|favicon).*)/([0-9]+)\.html$ /index\.php\?act=show&aid=$2&typestr=$1
  15. RewriteRule ^templets/([_\-A-Za-z0-9]+)/style/([_\-A-Za-z0-9]+).css(.*)$ /index\.php\?act=style&dir=$1&filename=$2
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则