2020-06-05, 08:17 AM
Hello guys, I hope you are doing well..
SO I have installed MyBB inside subdir: /bb/ and the wordpress inside main root folder..
http://prntscr.com/su7g5f
MyBB index is fine but images are broken and giving me 404 error or page not found?!!
I will share both .htaccess
:: Wordpress one located inside main wordpress folder or root folder
Second MyBB one: Located inside mybb root folder /bb/
Thank you
Update// I removed htaccess of MyBB folder, I couldn't even access index all mybb thing disappered, After enabling it again mybb index came back to its normal but Images or all images still broken
SO I have installed MyBB inside subdir: /bb/ and the wordpress inside main root folder..
http://prntscr.com/su7g5f
MyBB index is fine but images are broken and giving me 404 error or page not found?!!
I will share both .htaccess
:: Wordpress one located inside main wordpress folder or root folder
# BEGIN WordPress
# التعليمات (الأسطر) بين `BEGIN WordPress` and `END WordPress`
# تم إنشاؤها ديناميكيًا، ويجب تعديلها فقط من خلال مرشحات ووردبريس (WordPress Filters).
# أي تغييرات على التعليمات بين هذه العلامات سيتم الكتابة فوقها.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Second MyBB one: Located inside mybb root folder /bb/
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]
Thank you
Update// I removed htaccess of MyBB folder, I couldn't even access index all mybb thing disappered, After enabling it again mybb index came back to its normal but Images or all images still broken