wakatashi
Forum Replies Created
-
Forum: Plugins
In reply to: [WP-Members Membership Plugin] Block content even for logged-in users if…Fantastic, this has done the trick and I can now do everything I need to do.
Thanks, Chad, for your top-notch support on this.
Dave
Forum: Plugins
In reply to: [WP-Members Membership Plugin] Block content even for logged-in users if…Hi Chad,
Thanks for getting back to me on this. I’ve tested with
wp_securifyand it does work. But it then blocks all content unless there’s a current subscription, rather than allowing the public content but blocking the members-only content. What I’d like to do (using pseudo-code) is something along the lines of:if (content marked as members-only using WP-members) { if (external lookup of membership determines there's a current subscription) { return $content; } else { $content = "Sorry, your subscription has lapsed"; return content$ } } else { return $content; }Can something like this be done, where it takes account of whether the page is marked to be blocked to non-members?
Thanks,
DaveForum: Fixing WordPress
In reply to: After site migration: 404 errors on all non-root pagesThanks t-p – those links were helpful.
I’ve found the problem: my “WordPress Address (URL)” and “Site Address (URL)” were both set to https://www.domain com. However, in the config files in /etc/apache2/sites-enabled, the line “RewriteCond %{SERVER_NAME} =domain.com” appeared. The solution was to change everything to “domain.com” (without the www prefix).
And I needed to restart the Apache service to allow the change to take effect.
Now it works – hooray! Thanks.