bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

Permalink broken when in admin mode!

(13 posts)
  • Started 1 year ago by viveksivaram
  • Latest reply from chrishajer
  • This topic is resolved
  1. viveksivaram
    Member

    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?

    Posted 1 year ago #
  2. viveksivaram
    Member

    anyone has clues on this?

    should i post my forum url here?

    Posted 1 year ago #
  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.

    Posted 1 year ago #
  4. viveksivaram
    Member

    @ 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>

    Posted 1 year ago #
  5. vafaaaan
    Member

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

    Posted 1 year ago #
  6. viveksivaram
    Member

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

    Posted 1 year ago #
  7. vafaaaan
    Member

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

    Posted 1 year ago #
  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

    Posted 1 year ago #
  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

    Posted 1 year ago #
  10. vafaaaan
    Member

    for rss ? ok..

    the remove_filter "plugin" works :)

    Thank you very much

    Posted 1 year ago #
  11. Good to know that still works.

    Posted 1 year ago #
  12. viveksivaram
    Member

    @ 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.

    Posted 1 year ago #
  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/

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.