Community Support Forums — WordPress® ( Users Helping Users ) — 2010-10-18T10:01:18-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=1033 2010-10-18T10:01:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1033&p=3977#p3977 <![CDATA[htaccess rewrite rule?]]>
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.

Statistics: Posted by gwc_wd — October 18th, 2010, 10:01 am


]]>