Skip to:
Content
Pages
Categories
Search
Top
Bottom

Permalink broken when in admin mode!


  • viveksivaram
    Member

    @viveksivaram

    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?

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

  • viveksivaram
    Member

    @viveksivaram

    anyone has clues on this?

    should i post my forum url here?


    chrishajer
    Participant

    @chrishajer

    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.


    viveksivaram
    Member

    @viveksivaram

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


    vafaaaan
    Member

    @vafaaaan

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


    viveksivaram
    Member

    @viveksivaram

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


    vafaaaan
    Member

    @vafaaaan

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


    chrishajer
    Participant

    @chrishajer

    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:

    https://bbpress.org/forums/topic/bbsync?replies=207

    Logged out:

    https://bbpress.org/forums/topic/bbsync


    chrishajer
    Participant

    @chrishajer

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

    If you want to get rid of it, maybe this still works?

    https://bbpress.org/forums/topic/getting-rid-of-replies?replies=8


    vafaaaan
    Member

    @vafaaaan

    for rss ? ok..

    the remove_filter “plugin” works :)

    Thank you very much


    chrishajer
    Participant

    @chrishajer

    Good to know that still works.

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


    chrishajer
    Participant

    @chrishajer

    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/

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