Meta Refresh without URL Rewrite

We’re launching a members-only WordPress site that is only capable of hiding pages/posts; however, part of our content is served up by an API that can’t easily be hidden.

My best solution thus far is to embed a meta redirect to the appropriate URL on a page that I can restrict using our Memberships plugin.

<meta http-equiv="refresh" content="0; url=https://www.example.com/?taxonomy=inventory" />

The only caveat to this method is that the URL is then exposed, and anyone could distribute the source.

Is there any way to use the meta redirect without rewriting the URL? I’ve tried a few things in the .htaccess file, but nothing has really yielded a viable solution.

Read more here: Meta Refresh without URL Rewrite

Leave a Reply

Your email address will not be published. Required fields are marked *