Page 1 of 1

htaccess rewrite rule?

PostPosted: October 18th, 2010, 10:01 am
by gwc_wd
I'm having a problem with S2M not acting on certain URI fragments in a buddypress install, I think because the URLs render improperly for non-logged in users.

For example, a typical BP url is

http://sample.com/members/<?php global $current_user; get_currentuserinfo(); echo $current_user->user_login ?>/groups/

For logged in users that renders to http://sample.com/members/joe/groups (where user login is 'joe')

For anonymous users, not logged in, it renders to

http://sample.com/members//groups/

Note the double backslash where it wants the username.

In my S2M restricted URIs I have both fragments /members/ and /groups/ but instead of redirecting the user to the Member Options Page it simply returns them to home page.

Could someone suggest an .htaccess Rewrite rule that would look for // AFTER the correct http:// and if it finds it rewrite it to a single slash?

I'm not convinced this is actually the problem because I have other pages that also are not redirecting while some do redirect properly.

The site in development is canadago.ca and the offending links are in the QuickNav menu on the left sidebar.

What's frustrating is that everything worked perfectly before I moved the site to a new domain on a new server.