Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress根文件夹中的404 MyBB文件夹出错_Wordpress_.htaccess_Webserver_Cpanel_Mybb - Fatal编程技术网

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

Wordpress根文件夹中的404 MyBB文件夹出错,wordpress,.htaccess,webserver,cpanel,mybb,Wordpress,.htaccess,Webserver,Cpanel,Mybb,所以我先安装了mybb/bb/dir,然后在根文件夹中安装了wp/ 现在当我在myBB上索引所有图片时,当我浏览图片时,会显示未找到WP页面 两个HTWP都有一个: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^bb/(.*)$ - [L] RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCon

所以我先安装了mybb/bb/dir,然后在根文件夹中安装了wp/ 现在当我在myBB上索引所有图片时,当我浏览图片时,会显示未找到WP页面

两个HTWP都有一个:

<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时,所有mybb文件都更改为未找到页面!!另外,这是一个图像,可能会给你更多的感觉


谢谢你

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

多谢各位

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]