• Resolved Devanshu

    (@logicallimit)


    Hi,

    I am using buddypress 9.2.0 and WP 5.9.
    It is strange behavior that, I have created multiple users from WP admin panel that carries format of “firstname.lastname”. And When I login using them to frontend , I see 404 error on profile page.

    In the url, I see that the “firstname.lastname” is getting converted to “firstname-lastname”.

    Browser address bar URL shows as below and I get 404 error
    https://domainname.com/members/firstname.lastname/activity/

    But page loads if I change it to https://domainname.com/members/firstname-lastname/activity/

    Why is this happening and what is the solution for it. Is anybody else facing this issue ? Is this a buddypress related issue or wordpress one?

    Regards,
    Devanshu

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @logicallimit,

    WordPress allows author archive URLs to contain dots in the username, but BuddyPress does not, by default.

    To allow dots in BuddyPress profile URLs, add the following in your wp-config.php file:

    define( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE', true );

    Let me know if this works.

    Thread Starter Devanshu

    (@logicallimit)

    @kaavyaiyer

    Thank you so much for your tip. Yes it solved the issue.

    Regards,
    Devanshu

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘dots in username getting converted to hyphen’ is closed to new replies.