Forums

Join
bbPress Support ForumsTroubleshootingPermalink broken when in admin mode!

Info

Permalink broken when in admin mode!

  1. I have this weird issue. I have enabled permalink in my config.php. Initially I had the .htaccess with option +multiview in the /bbpress folder. Then I read that it would be good to have just one .htaccess in the wordpress folder. I did this and also tried to have the other option as documented in the site (using a generated list as content for .htaccess).

    Permalinks worked when I am not logged in. The moment I log in as admin, I see the address is of the form ?/topic=1 etc.

    I try clearing cookies, tried to delete the whole forum but still am able to reproduce the issue.

    What am I doing wrong?

  2. anyone has clues on this?

    should i post my forum url here?

  3. If you post the URL maybe someone can help.

    If you create another user and log in / log out, does the same thing occur. or is it only as admin that the problem occurs? If it's only as admin, it's going to be hard to test by anyone other than you. If it happens to other users (like if you create a test user) then it can be seen by others as well.

  4. @ chrishajer

    thanks for the reply.

    My site url is : http://aavaas.com

    My forum url is : http://aavaas.com/forums

    I have created a test user : bbpresstest

    Password is : test

    Currently there is only 1 post in my forum - "Your first topic"

    When I am logged in the url for the same is : http://aavaas.com/forums/topic/1?replies=1

    When I am logged out the url is : http://aavaas.com/forums/topic/1

    I believe the later is a pretty permalink whereas the first is not.

    Help here is appreciated. My .htaccess is located in the root folder with the following lines:

    #
    <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/([^/]+)/([^/]+)/?$ /forums/profile.php?id=$1&tab=$2 [L,QSA]
    RewriteRule ^profile/([^/]+)/([^/]+)/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/([^/]+)/page/([0-9]+)/?$ /forums/view.php?view=$1&page=$2 [L,QSA]
    RewriteRule ^view/([^/]+)/?$ /forums/view.php?view=$1 [L,QSA]
    RewriteRule ^rss/?$ /forums/rss.php [L,QSA]
    RewriteRule ^rss/forum/([^/]+)/?$ /forums/rss.php?forum=$1 [L,QSA]
    RewriteRule ^rss/topic/([^/]+)/?$ /forums/rss.php?topic=$1 [L,QSA]
    RewriteRule ^rss/tags/([^/]+)/?$ /forums/rss.php?tag=$1 [L,QSA]
    RewriteRule ^rss/profile/([^/]+)/?$ /forums/rss.php?profile=$1 [L,QSA]
    </IfModule>

  5. yes .. i have the same .. replies=number .. but only multiviews in my htaccess. Why the replies in the url ?

  6. @ vafaaaan, do you see the number in url when you are logged out?

  7. No, not the replies .. only topic/number .. same as you ..

  8. I just checked an example on my forum for comparison.

    When I am logged in (not using permalinks at all):
    http://www.riversideinfo.org/forum/topic.php?id=511&page&replies=1

    When I am logged out:
    http://www.riversideinfo.org/forum/topic.php?id=511&page#post-5973

    Both work, neither is broken, they're just different.

    I checked it in this forum too (using slugs?)
    Logged in:
    http://bbpress.org/forums/topic/bbsync?replies=207

    Logged out:
    http://bbpress.org/forums/topic/bbsync

  9. I thought I heard the replies in the URL was for RSS?

    If you want to get rid of it, maybe this still works?
    http://bbpress.org/forums/topic/getting-rid-of-replies?replies=8

  10. for rss ? ok..

    the remove_filter "plugin" works :)

    Thank you very much

  11. Good to know that still works.

  12. @ chrishajer , thank you for the replies. My issues seem to be fixed now.

    If only we can get some good and simple theme for bbpress.

  13. We should probably start a new thread to talk about themes, but there is a nice showcase here:
    http://bbshowcase.org/forums/view/available-themes

    And searching the forum tag "theme" or "themes" turns up a lot (in addition to theme problems.) Now, good and simple are subjective, but these are as simple as they come:
    http://bbpressraw.com/bbpress_blank_themes/

  14. You must log in to post.