Wordpress根文件夹内的错误404 MyBB文件夹

问题描述 投票:0回答:1

所以我先安装了mybb / bb /目录,然后在根文件夹中安装了wp /现在,当进入myBB索引时,所有图像都破碎了,当我浏览图像时,显示未找到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个回答
0
投票

因此,经过数小时的搜索,我意识到,在上传插件文件时,文件夹的权限从755更改为700,这在删除了htaccess后都给了405 Forbidden错误。改回彼尔姆可以解决所有问题。

谢谢

© www.soinside.com 2019 - 2024. All rights reserved.