Skip to:
Content
Pages
Categories
Search
Top
Bottom

BBPress not honouring WP Permalinks – WP Directory can be seen in URL


  • wckdonlinemdia
    Member

    @wckdonlinemdia

    Hello

    I have domain domainnameDOTcom/

    My WordPress directory is domainnameDOTcom/wordpress/

    Installed BuddyPress Default 1.2.7 with WordPress 3.0.4

    With BB-Press Forum

    When I select any tab that is not created in WP then the FULL url including the WP install directory is evident

    How can I ensure this WP directory remains “hidden” from the users perspective

    I have tried to implement bp-custom.php which resides in /public_html/wptest/wp-content/plugins/buddypress without success.

    That is the WP directory can be seen in the URL when I select “Forum” tab, thereafter the site adopts the extended url even though permalinks is set to /%category%/%postname%/

    Here is the code I found on this site and tested:

    code:

    <?php

    // Getting rid of the subfolder in URLs/permalinks

    function my_bp_override_core_domain() {

    $domain = get_bloginfo(‘url’);

    return $domain;

    }

    add_filter(‘bp_core_get_root_domain’,’my_bp_override_core_domain’);

    ?>

    I look forward to hearing feedback

    Phil

  • You must be logged in to reply to this topic.
Skip to toolbar