[Plugin: Member Access] Problems with MemberAccess and htaccess rewrite rule
-
TLDR;
My WP installation rewrites all URLs to omit the “www”. However, when using MemberAccess, entering any URL containing a “www” always redirects me to the dashboard (rather than the page I was trying to access) after a successful login. Help!Longer Version:
————–
In my WP backend, my WP address and my site address are both set tohttp://mysite.com/blog
(without the www)Consequently when I enter http://www.mysite.com/blog into my browser, I am redirected to http://mysite.com/blog. The same applies to a random page on my site, e.g. http://www.mysite.com/blog/about redirects to http://mysite.com/blog/about.
Without the MemberAccess plugin activated, everything works as you would expect. No problems.
However, when I activate the plugin, set both pages and posts to be protected, with non-members being redirected to the WP login screen, I get a problem.
If I enter http://mysite.com/blog/ or http://mysite.com/blog/about, then I am asked to login, then am redirected to the appropriate page. All good.
Yet, if I enter http://www.mysite.com/blog/ or http://www.mysite.com/blog/about, I am also asked to login, but am then redirected to http://mysite.com/blog/wp_admin, i.e. I am not redirected to the page I wanted to see, rather always end up at the dashboard page.
What I would like is to enter http://www.mysite.com/blog/about, have MemberAccess ask me to login, then be redirected to http://mysite.com/blog/about, and not the dashboard.
Could anyone give me any tips on how to sort this out?
- The topic ‘[Plugin: Member Access] Problems with MemberAccess and htaccess rewrite rule’ is closed to new replies.