Skip to:
Content
Pages
Categories
Search
Top
Bottom

Permalinks – Members/Profile pages redirect to homepage

  • @stephentheh

    Member

    I’m working on installing a fresh, brand-new installation of WordPress using 3.0.1 in network/multi-site mode, with version 1.2.5.2 of Buddypress installed into it. WordPress’ network mode is set to use subdirectories instead of domains or subdomains. No other plugins are activated, and only Akismet is installed. I’m also using the default Buddypress theme, having made no modifications to it(yet).

    During setup, at WordPress’ prompting(based on my operating mode selections), I used the following rules for my .htaccess file…

    `RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ – [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
    RewriteRule . index.php [L]`

    The problem I’m running into is that even with a fresh installation of Buddypress, I cannot seem to get the member profile page links to work, either for the view or the edit screens. They simply re-direct “http://domain.com/members/USERNAME/profile/edit/” back to “http://domain.com/” every time.

    Do I need to use different rules for my .htaccess file, or is there another issue going on here? Any ideas or other things I should check on would be great as well.

Viewing 10 replies - 1 through 10 (of 10 total)
  • @nuprn1

    Participant

    quick check… have you enabled BP_ENABLE_USERNAME_COMPATIBILITY_MODE ?

    @djpaul

    Keymaster

    Why would he need to worry about BP_USERNAME_COMPATIBILITY_MODE on a clean install?

    @nuprn1

    Participant

    bp_core_set_uri_globals/catchuri and usernames have given me trouble in the past – maybe there is a seed/created userdata and redirecting on bad chars in the username?

    @stephentheh

    Member

    Where do I enable that compatibility mode?

    @nuprn1

    Participant

    @stephentheh

    Member

    Thanks so much, I’ll give it a shot.

    @stephentheh

    Member

    Thanks again Rich, that appears to have done the trick!

    @nuprn1

    Participant

    alright!

    @djpaul :P

    @djpaul

    Keymaster

    That is no good if you think there’s a bug with the username validation, @nuprn1. If you can get it to fail on a username that should be valid per the regex, submit a bug ticket.

    @nuprn1

    Participant

    i have in the past (which has been refined and fixed with the compat mode flag) – whenever i dump BP on top of an established wordpress blog, the flag is a must. (comes down to the displayname tolerances in the wp_users table )

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Permalinks – Members/Profile pages redirect to homepage’ is closed to new replies.
Skip to toolbar