Skip to:
Content
Pages
Categories
Search
Top
Bottom

Can I modify the htaccess File for member profile links?

  • @brittonk

    Participant

    Hey guys.

    I’m switching a social site I own over to buddy press. The theme I’m using requires permalinks to be set to post name. That’s fine– but it makes profiles appear like:

    http://domain.com/members/username

    I need the user URLs to remain the same as the current site’s structure of

    http://domain.com/username

    It was achieved like this:

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule ^([a-zA-Z0-9]+)([/]*)$ members/$1

    But with the post name permalinks it just 404’s. How can I modify this:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    To achieve my goal? I’m using the latest wordpress and latest buddypress. Thanks so much for any help.

Viewing 1 replies (of 1 total)
  • @brittonk

    Participant

    This thread can be closed. I found the solution. If anyone else happens upon this thread, I needed to create a file /plugins/bp-custom.php

    with this in it:

    <?
    define ( 'BP_ENABLE_ROOT_PROFILES', true );
    ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Can I modify the htaccess File for member profile links?’ is closed to new replies.
Skip to toolbar