PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

htaccess rewrite rule?

s2Member Plugin. A Membership plugin for WordPress®.

htaccess rewrite rule?

Postby gwc_wd » October 18th, 2010, 10:01 am

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.
User avatar
gwc_wd
Registered User
Registered User
 
Posts: 18
Joined: June 27, 2010

Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 3 guests

cron