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



所以我先安装了 mybb/bb/dir,然后在根文件夹中安装了 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 文件都更改为页面未找到!!这也是一个图像,也许给你更多的意义

谢谢

因此,经过数小时的搜索,我意识到在上传插件文件文件夹权限时,权限从 755 更改为 700,这在删除两个 htaccess 后给了我 405 禁止错误。变回彼尔姆修复了一切。

谢谢

相关内容

  • 没有找到相关文章

最新更新