MyBB Community Forums

Full Version: MyBB .htaccess conflicting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Well I'm actually progressing. Now the forum works except for all threads and forum get a wordpress 404 message.
Did you enable "Search Engine Friendly URLs"?
(2013-02-25, 04:39 PM)ElectricShock Wrote: [ -> ]Did you enable "Search Engine Friendly URLs"?
Thanks. I disabled them and it's fixed now. Great.
I'm curious what specifically was the solution to make this work for you?
(2013-02-24, 01:07 PM)StevenF50 Wrote: [ -> ]Wordpress .htaccess keeps overiding mybb's so I can't actually get to the forum. Does anyone know how to modify the .htaccess to get them both to work?

WordPress .htaccess usually has something like this:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

If you have a MyBB forum in a /forum/ subfolder, change it to this:

RewriteCond !^/forum/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

That way it should leave anything that starts with /forum/ alone and enables you to use any rewrite style you like for MyBB URLs.

Without rewrites it works because it already leaves existing files and folders alone by default, so if /forum/showthread.php actually exists it ignores that. It tries to rewrite /forum/thread-123.html to Wordpress because there is no real thread-123.html file.
Pages: 1 2