365站群教程 发表于 2021-11-21 17:35:28

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

  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
复制代码
页: [1]