【问题标题】:Error 404 MyBB Folder inside Wordpress Root FolderWordpress 根文件夹中的错误 404 MyBB 文件夹
【发布时间】:2020-09-24 12:18:02
【问题描述】:

所以我首先安装了 mybb /bb/ dir 然后在根文件夹 / 中安装了 wp 现在什么时候我的 BB 索引所有图像都损坏了,当我浏览图像时它显示 WP 页面未找到?!!

两个 htaccess WP 之一:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^bb/(.*)$ - [L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

这里还有 MyBB htaccess

RewriteEngine on
# Some hosts require RewriteBase to make RewriteRules work.
RewriteBase /bb/
# Google SEO workaround for search.php highlights:
# Make this rule the first rewrite rule in your .htaccess!
RewriteRule ^([^&]*)&(.*)$ https://alnassiri.com/bb/$1?$2 [L,QSA,R=301]
# Google SEO 404:
ErrorDocument 404 /bb/misc.php?google_seo_error=404
# Google SEO Sitemap:
RewriteRule ^sitemap\-([^./]+)\.xml$ misc.php?google_seo_sitemap=$1 [L,QSA,NC]
# Google SEO URL Forums:
RewriteRule ^Forum\-([^./]+)$ forumdisplay.php?google_seo_forum=$1 [L,QSA,NC]
# Google SEO URL Threads:
RewriteRule ^Thread\-([^./]+)$ showthread.php?google_seo_thread=$1 [L,QSA,NC]
# Google SEO URL Announcements:
RewriteRule ^Announcement\-([^./]+)$ announcements.php?google_seo_announcement=$1 [L,QSA,NC]
# Google SEO URL Users:
RewriteRule ^User\-([^./]+)$ member.php?action=profile&google_seo_user=$1 [L,QSA,NC]
# Google SEO URL Calendars:
RewriteRule ^Calendar\-([^./]+)$ calendar.php?google_seo_calendar=$1 [L,QSA,NC]
# Google SEO URL Events:
RewriteRule ^Event\-([^./]+)$ calendar.php?action=event&google_seo_event=$1 [L,QSA,NC]

注意:当我删除 mybb htaccess 时,所有 mybb 文件都更改为找不到页面!这也是一张图片,可能会给你更多的感觉

谢谢

【问题讨论】:

    标签: wordpress .htaccess webserver cpanel mybb


    【解决方案1】:

    所以经过几个小时的搜索,我意识到在上传插件文件时文件夹权限从 755 更改为 700,这在删除两个 htaccess 后给了我 405 Forbidden 错误。换回 Perm 解决了所有问题。

    谢谢

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-05-10
      • 2018-10-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多