Skip to:
Content
Pages
Categories
Search
Top
Bottom

Strange (?) (404) report i Firebug


  • oledole
    Member

    @oledole

    I have WP and BB integrated with BB in a subdirectory. Now I found a strange thing in Firebug’s “Net” section (where Firebug shows “requests”).

    When I load anything WP-realted everything looks fine, but when I load something BB-related HTML-request is listed with (404) in Firebug, although the page loads just fine.

    URL to the blog is http://www2.enserio.se/blogg/

    and the forum is at

    http://www2.enserio.se/blogg/forumet/

    I’ve had a problem when trying to check the forum at http://www.websiteoptimization.com/, which says that the page (and any other BB-realted page) doesn’t exist and report a 404-error. Somehow I thing it’s related to the Firebug-thing.

    I suspect it’s an ‘htaccess’ related problem, but I can’t figure out how to fix it. The htaccess in the WP root is:

    # BEGIN WordPress

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /blogg/

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule . /blogg/index.php [L]

    </IfModule>

    # END WordPress

    and dito in the bb root is:

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /blogg/forumet/

    RewriteRule ^forum/(.+)/page/([0-9]+)$ /blogg/forumet/forum.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^forum/(.+)/?$ /blogg/forumet/forum.php?id=$1 [L,QSA]

    RewriteRule ^topic/(.+)/page/([0-9]+)$ /blogg/forumet/topic.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^topic/(.+)/?$ /blogg/forumet/topic.php?id=$1 [L,QSA]

    RewriteRule ^tags/(.+)/page/([0-9]+)$ /blogg/forumet/tags.php?tag=$1&page=$2 [L,QSA]

    RewriteRule ^tags/(.+)/?$ /blogg/forumet/tags.php?tag=$1 [L,QSA]

    RewriteRule ^tags/?$ /blogg/forumet/tags.php [L,QSA]

    RewriteRule ^profile/(.+)/page/([0-9]+)$ /blogg/forumet/profile.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^profile/(.+)/([a-z-]+)$ /blogg/forumet/profile.php?id=$1&tab=$2 [L,QSA]

    RewriteRule ^profile/(.+)/([a-z-]+)/page/([0-9]+)$ /blogg/forumet/profile.php?id=$1&tab=$2&page=$3 [L,QSA]

    RewriteRule ^profile/(.+)/?$ /blogg/forumet/profile.php?id=$1 [L,QSA]

    RewriteRule ^view/([a-z-]+)/page/([0-9]+)$ /blogg/forumet/view.php?view=$1&page=$2 [L,QSA]

    RewriteRule ^view/([a-z-]+)$ /blogg/forumet/view.php?view=$1 [L,QSA]

    RewriteRule ^rss/$ /blogg/forumet/rss.php [L,QSA]

    RewriteRule ^rss/forum/([0-9]+)$ /blogg/forumet/rss.php?forum=$1 [L,QSA]

    RewriteRule ^rss/topic/([0-9]+)$ /blogg/forumet/rss.php?topic=$1 [L,QSA]

    RewriteRule ^rss/tags/([a-z-]+)$ /blogg/forumet/rss.php?tag=$1 [L,QSA]

    RewriteRule ^rss/profile/([0-9]+)$ /blogg/forumet/rss.php?profile=$1 [L,QSA]

    RewriteRule ^mlist/ mlist.php? [L,QSA]

    </IfModule>

    I can’t use the “Options +MultiViews”, gives me an “Internal server error”.

    Any input on this is most welcome!

Viewing 13 replies - 1 through 13 (of 13 total)

  • oledole
    Member

    @oledole

    Some more info:

    If I set permalinks in WP to default the 404-message in firebug goes away, and I can chech the forum pages with http://www.websiteoptimization.com/ without problem …


    BernieSteak
    Member

    @berniesteak

    Having the very same issue here. Main wordpress site is at / bbpress at /forum/ and although all appears fine the headers returned are 404 not found.

    If anyone can shed any light on this weirdness that would be much appreciated.

    I attempted moving the htaccess content into a vhost file on my server and put them in <Directory> sections, to see if that made any difference. No surprise really it didn’t.

    I’m not an htaccess ot http expert and this seems just weird to me.


    BernieSteak
    Member

    @berniesteak

    Seems we’re not alone (my forum is not public yet so can’t post URL), but:

    http://forums.hostmech.com/topic/3

    Also hows as 404, but works in my browser (Firebug displays the 404, but we get there in the end and it shows the page).

    http://www.seoconsultants.com/tools/headers/


    BernieSteak
    Member

    @berniesteak

    Here’s another thing, I tried instead to put the forums as a subdmain forum.mywebsite.com as opposed to mywebsite.com/forum and it still returns 404 errors. Odd.

    Actually, it behaves exactly like: http://forums.hostmech.com/ in that situation.

    The main URL is OK, but ANY other url shows as a 404.


    oledole
    Member

    @oledole

    Odd it is. I’ve posted this over att the WP forum as well, http://wordpress.org/support/topic/127302?replies=3. Nothing there that has worked for me, so far. There are a lot of htaccess-issues regarding password protection problems, but nothing I’ve found so far has fixed this.


    BernieSteak
    Member

    @berniesteak

    May be worth linking that thread over to this one (I don’t have a WP forum account just now), as it does affect both systems (working together).

    If I turn off permalinks on bbpress it seems to work though, same with you?

    I have used MultiViews as well as the more in depth htaccess and it didn’t change anything.


    oledole
    Member

    @oledole

    I’ll link it. And it’s the same userid over at WP as here att bbpress.

    Turning of/setting WP permalinks to default fixes it at my site.


    BernieSteak
    Member

    @berniesteak

    I also have a bbpresss and wpmu installed at http://themotorcade.com and http://themotorcade.com/forums/ and that works fine, no 404 messages.

    I tried using the htaccess settings from that site on my problem development site and no joy.


    BernieSteak
    Member

    @berniesteak

    Did you get anywhere with this either oledole? I can’t figure it, and it doesn’t look like we’re going to get any help! :(


    colinbm
    Member

    @colinbm

    Here’s a intermediate fix until whatever the causing reason is fixed:

    http://www.burn-murdoch.com/colin/bbpress_fix_404.zip

    Add this to the my-plugins folder (create the folder if neccessary) and activate the plugin in bb-admin.

    All it does is call header(‘HTTP/1.1 200′) on the bb_init action, which overrides the 404.


    Sam Bauers
    Participant

    @sambauers

    Apache processes rewrite directives in the order they are found.

    First the main Apache config file is used, then (if they are allowed) the .htaccess files are used in the order they are encountered from the root of the website out through the directories until the final directory that contains the file that is being accessed.

    So if you have a page at http://www.example.com/blog/forum, then the order of processing is like:

    Apache config
    |
    +-> /path/to/site/www.example.com/.htaccess
    |
    +-> /path/to/site/www.example.com/blog/.htaccess
    |
    +-> /path/to/site/www.example.com/blog/forum/.htaccess

    So the “blog” rewrite rules will be assessed first. This means that you may want to place your bbPress rewrite rules in the same .htaccess file as your blog rules, before the blog rules, as they are more specific and should be handled first.

    Also, there were some problems with WordPress throwing 404 errors based on what mod_rewrite was doing. This was specifically with version 2.1 I think, so your WordPress may need to be upgraded.


    BernieSteak
    Member

    @berniesteak

    @sam

    Already tried (as mentioned above) using forums as subdomain and also putting the htaccess details in a vhost.conf file. No joy either way.

    @colin

    “Quick and dirty” fix seems to do the trick.

    Not actually sure if I’m going to go with bbpress anymore, I put a vanilla forum up in the meanwhile and it seems pretty decent. Although integration is nowhere near as slick with WordPress.

    Been away for a week doing som of-line hiking in beautifull Norway. Good to see there has been som progress on this while I’ve been enjoying mother earth.

    Colin’s fix worked for me as well (thanks!). Hopefully this will be solved on a more permanent way in the next bb release?

    For the moment I moved my site to the root at http://enserio.se with the WP and BB in separate subfolders, and everything seems to work as expected.

Viewing 13 replies - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.