Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of hnla

Permalinks – Members/Profile pages redirect to homepage (11 posts)

Started 1 year, 5 months ago by: stephentheh

  • Profile picture of stephentheh stephen h said 1 year, 5 months ago:

    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.

  • Profile picture of rich! @ etiviti rich! @ etiviti said 1 year, 5 months ago:

    quick check… have you enabled BP_ENABLE_USERNAME_COMPATIBILITY_MODE ?

  • Profile picture of Paul Gibbs Paul Gibbs said 1 year, 5 months ago:

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

  • Profile picture of rich! @ etiviti rich! @ etiviti said 1 year, 5 months ago:

    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?

  • Profile picture of stephentheh stephen h said 1 year, 5 months ago:

    Where do I enable that compatibility mode?

  • Profile picture of rich! @ etiviti rich! @ etiviti said 1 year, 5 months ago:

    http://codex.buddypress.org/how-to-guides/changing-internal-configuration-settings/

  • Profile picture of stephentheh stephen h said 1 year, 5 months ago:

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

  • Profile picture of stephentheh stephen h said 1 year, 5 months ago:

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

  • Profile picture of rich! @ etiviti rich! @ etiviti said 1 year, 5 months ago:

    alright!

    @djpaul :P

  • Profile picture of Paul Gibbs Paul Gibbs said 1 year, 5 months ago:

    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.

  • Profile picture of rich! @ etiviti rich! @ etiviti said 1 year, 5 months ago:

    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 )