The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Problem with sub directories (6 posts)

  1. Dennis
    Posted 5 years ago #


    I'm using WPMU and BuddyPress on a site, a "blog farm", but when any user will register a new blog within the subdirectory, it creates no spaces between words, for example:

    http://www.adress.com/nameoftheblog or http://www.adress.com/namewithoutspace

    ..and my goal was to be like this:

    http://www.adress.com/name-of-the-blog or http://www.adress.com/name-with-space


  2. I don't believe buddypress allows you to enter blog names with hyphens. Spaces will be removed, yes.

  3. Dennis
    Posted 5 years ago #

    Hmm, but why it happens? I mean, it is possible to create a subdirectory with hyphens, why buddypress can't make it?

  4. Well, I know in WordPress, if it finds a space in what it's trying to build a URL from, it kicks out an error.

    It;s not a question of "it can't" it's more it was coded to do that specifically. If you want it to substitute hyphens for spaces, you'll have to build a plugin.

  5. Aha, try this:


    You may have to tweak it to work with buddypress.

  6. Dennis
    Posted 5 years ago #

    Looks like will work. I will try and report back later. Thanks again.

Topic Closed

This topic has been closed to new replies.

About this Topic