Skip to:
Content
Pages
Categories
Search
Top
Bottom

Simply doesn’t work

Viewing 21 replies - 1 through 21 (of 21 total)
  • You properly will find that you have not placed the mod_rewrite information in a .htaccess file.

    Go to http://www.yoursite.com/bb-admin/rewrite-rules.php (make sure that you are logged in and are an admin/keymaster). Copy what it spits out and place it in a .htaccess file on you root directory.

    Wow, that worked, thanks a lot. :)


    spudnutsncoffee
    Member

    @spudnutsncoffee

    I tried the mod rewrite and it did not work for me.

    I have this in my htaccess

    # BEGIN WordPress

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule . /index.php [L]

    </IfModule>

    # END WordPress

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /bbpress/

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    </IfModule>

    I still get 404 errors no matter what link I click in my blog.

    Installed fine. Dashboard and all that stuff in place.

    Can go to admin. and all the other places, I just cannot get links to work.

    I know in my config file I made sure pretty links was enabled but it doesn’t look like it worked

    Here is the default first post link

    http://totalphysiqueonline.com/bbpress/topic/1?replies=1

    Doesn’t look like a pretty link, does it?

    That link is the way that that it comes up. Just look at the URL of this post for instance. It seems to me that you have the .htaccess just in your main root of http://totalphysiqueonline.com right? You need the one for wordpress there and a completely seperate .htaccess file in the bbpress folder containing the bbpress part. Each system needs their own.

    Try that.

    Trent


    spudnutsncoffee
    Member

    @spudnutsncoffee

    Trent thanks I will give that a try.


    spudnutsncoffee
    Member

    @spudnutsncoffee

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /bbpress/

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    </IfModule>

    OK the above code is what I placed in HTACCESS, and I did as you suggested by uploading this file to my bbpress folder.

    I then logged back into my site and I am still getting the 404 errors

    Here is the actual error:

    The page you tried to access does not exist on this server. This page may not exist due to the following reasons:

    You are the owner of this web site and you have not uploaded (or incorrectly uploaded) your web site. For information on uploading your web site using FTP client software or web design software, click here for FTP Upload Information.

    The URL that you have entered in your browser is incorrect. Please re-enter the URL and try again.

    The Link that you clicked on incorrectly points to this page. Please contact the owner of this web site to inform them of this situation.

    Hmm….maybe somebody with a little more permalinks knowledge has some ideas?

    Trent

    Ok….try this as it must be in main .htaccess and not seperate.

    get rid of the .htaccess in bbpress directory and try this in .htaccess for wordpress.

    # BEGIN WordPress

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule . /index.php [L]

    # END WordPress

    RewriteBase /bbpress/

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    </IfModule>

    Trent


    spudnutsncoffee
    Member

    @spudnutsncoffee

    Trent, since I suspected that the permalinks was the issue, I just disabled it. I replace TRUE with FALSE, which is the way it is by default, and my links worked. But dang it, I wanted to try it with pretty links.


    spudnutsncoffee
    Member

    @spudnutsncoffee

    Any more ideas on how to use permalinks?

    I will have to open this up to the community because personally, I can’t scratch anymore ideas on this out of my head!

    Trent


    bakedlogdotcom
    Member

    @bakedlogdotcom

    I am having the same problem.. I have followed the FAQ Permalinks and still cannot get it to work.

    I have set $bb->mod_rewrite = true;

    I have tried writting my .htaccess with:

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /

    Options +MultiViews

    </IfModule>

    I have also tried what was outputed from the “bb-admin/rewrite-rules.php”:

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    </IfModule>

    In either case I get a 404 error so i set $bb->mod_rewrite = false; until I can get this resolved.

    This is the same on one of my servers. It doesn’t work either way, but Rewrite works with WP….strange.

    Trent


    spudnutsncoffee
    Member

    @spudnutsncoffee

    Gee, aren’t problems fun! I mean dontcha just like sitting in front of your PC for 48 hours straight trying to figure out why that damned “P “remains lower case even though you have uploaded it 648 times, only to find out you were uploading the right document to the wrong directory all along?

    Lord help us!

    Now Trent will spend the next week trying to figure out why this damned htacces/permalink wonkiness is giving us fits. LOL

    During that time he will neither eat, sleep, shower or use the bathroom. He will simply deficate where he sits. In fact, he will not even blink. But hey, at least our problems will be solved thanks to Trent.

    May he rest in peace.

    heheh


    bakedlogdotcom
    Member

    @bakedlogdotcom

    This is the same on one of my servers. It doesn’t work either way, but Rewrite works with WP….strange.

    I thought I was going crazy but thank you, it works for WP but not bbPress what is going on haha. Good Luck!

    You need to change all links for bbpress and put bbpress in front of them, so they look like

    ^bbpress/tags

    etc…. and removed

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /bbpress

    as you can only ever have one of those in an .htaccess file, and connect it to your wordpress one as well. If you get all of that :X


    bakedlogdotcom
    Member

    @bakedlogdotcom

    ===============SOLUTION==============

    Put the following in your .htaccess file (in the same directory as config.php):

    Options -Multiviews

    RewriteEngine On

    RewriteBase /

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


    spudnutsncoffee
    Member

    @spudnutsncoffee

    OK I will try this and let you know what happens.


    Creative Slice
    Member

    @creativeslice

    I had a similar problem and found that putting this one line of code (and nothing else) in the .htaccess file did the trick:

    Options +MultiViews

    Options +MultiViews

    Did not work for me.

    I placed the .htaccess in the folder /forums (that is where the bbpress is installed. No luck. Tried placing it below the .htaccess at root used by wordpress. No Luck! I also copied the above stuff and put it at the root together with wordpress’s .htaccess, but no luck!

    I love your wonderful program. But I can’t get this thing to work.

    Can anyone help me please ?

    forums/bb-admin/rewrite-rules.php

    gave me this :

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /forums/

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    </IfModule>

    Thank you so much for taking the time to read this post.


    numberblack
    Member

    @numberblack

    I have the same thing. I tried everything. When i click on ‘show topic’ on my ne forum, or any other – i am redirected to main wordpress page.

    The most stupid thing is that just after i installed bbpress, it was working. But after i was trying to integrate with wordpress – several bugs have occured, so i deleted bb and cleared the databe, but now after another install, it simply doesnt work, just like the topic says.

Viewing 21 replies - 1 through 21 (of 21 total)
  • You must be logged in to reply to this topic.
Skip to toolbar