Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] 伪静态404,您请求的文件不存在!

[复制链接]
vzhtian 发表于 2018-7-19 15:38:23 | 显示全部楼层 |阅读模式
1独立主机 2后台 已经开启 伪静态








3.Rewrite规则这样写的

<IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{QUERY_STRING} ^(.*)$
        RewriteRule ^(.*)/list-(\w+)\.html$ $1/plugin.php?id=wq_help&cid=$2&%1
        RewriteCond %{QUERY_STRING} ^(.*)$
        RewriteRule ^(.*)/articlelist-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/plugin.php?id=wq_wechatcollecting&mod=list&classid=$2&displayorder=$3&page=$4&%1
        RewriteCond %{QUERY_STRING} ^(.*)$
        RewriteRule ^(.*)/wechatarticle-([0-9]+)\.html$ $1/plugin.php?id=wq_wechatcollecting&mod=view&articleid=$2&%1
        RewriteCond %{QUERY_STRING} ^(.*)$
        RewriteRule ^(.*)/wechatlist-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/plugin.php?id=wq_wechatshow&mod=list&classid=$2&displayorder=$3&page=$4&%1
        RewriteCond %{QUERY_STRING} ^(.*)$
        RewriteRule ^(.*)/wechat-(\w+)-([0-9]+)\.html$ $1/plugin.php?id=wq_wechatshow&mod=view&wid=$2&page=$3&%1
        RewriteCond %{QUERY_STRING} ^(.*)$
        RewriteRule ^(.*)/wechat-(\w+)-(\w+)-([0-9]+)\.html$ $1/plugin.php?id=wq_wechatshow&mod=view&wid=$2&displayorder=$3&page=$4&%1
</IfModule>



http://bbs.5dglobe.com



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
1314学习网 发表于 2018-7-19 15:53:44 | 显示全部楼层
回复

使用道具 举报

 楼主| vzhtian 发表于 2018-7-19 17:06:43 | 显示全部楼层
  1. # 将 RewriteEngine 模式打开
  2. RewriteEngine On

  3. # 在以下语句中的 RewriteBase / 后边添加你论坛目录地址,例如:RewriteBase /bbs,如果程序放在根目录中,则不用修改。
  4. RewriteBase /

  5. # Rewrite 系统规则请勿修改
  6. RewriteCond %{QUERY_STRING} ^(.*)$
  7. RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1
  8. RewriteCond %{QUERY_STRING} ^(.*)$
  9. RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
  10. RewriteCond %{QUERY_STRING} ^(.*)$
  11. RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
  12. RewriteCond %{QUERY_STRING} ^(.*)$
  13. RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
  14. RewriteCond %{QUERY_STRING} ^(.*)$
  15. RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
  16. RewriteCond %{QUERY_STRING} ^(.*)$
  17. RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
  18. RewriteCond %{QUERY_STRING} ^(.*)$
  19. RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
  20. RewriteCond %{QUERY_STRING} ^(.*)$
  21. RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1
  22. RewriteEngine On
  23.         RewriteCond %{QUERY_STRING} ^(.*)$
  24.         RewriteRule ^(.*)/list-(\w+)\.html$ $1/plugin.php?id=wq_help&cid=$2&%1
  25.         RewriteCond %{QUERY_STRING} ^(.*)$
  26.         RewriteRule ^(.*)/articlelist-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/plugin.php?id=wq_wechatcollecting&mod=list&classid=$2&displayorder=$3&page=$4&%1
  27.         RewriteCond %{QUERY_STRING} ^(.*)$
  28.         RewriteRule ^(.*)/wechatarticle-([0-9]+)\.html$ $1/plugin.php?id=wq_wechatcollecting&mod=view&articleid=$2&%1
  29.         RewriteCond %{QUERY_STRING} ^(.*)$
  30.         RewriteRule ^(.*)/wechatlist-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/plugin.php?id=wq_wechatshow&mod=list&classid=$2&displayorder=$3&page=$4&%1
  31.         RewriteCond %{QUERY_STRING} ^(.*)$
  32.         RewriteRule ^(.*)/wechat-(\w+)-([0-9]+)\.html$ $1/plugin.php?id=wq_wechatshow&mod=view&wid=$2&page=$3&%1
  33.         RewriteCond %{QUERY_STRING} ^(.*)$
  34.         RewriteRule ^(.*)/wechat-(\w+)-(\w+)-([0-9]+)\.html$ $1/plugin.php?id=wq_wechatshow&mod=view&wid=$2&displayorder=$3&page=$4&%1
  35. # 其他插件规则建议放在这上边
  36. RewriteCond %{QUERY_STRING} ^(.*)$
  37. RewriteRule ^([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ plugin.php?id=$1:$2&%1
复制代码

回复

使用道具 举报

crx349 发表于 2018-7-19 18:09:01 | 显示全部楼层
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-27 12:49 , Processed in 0.019158 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表