Only expose routes with prefix /wp-json on WordPress using Apache
Pretty straightforward:
Pretty straightforward:
I’m trying to post to a WordPress server on an AWS Lightsail instance using node-wpapi.
However, the server returns a 401 error.
I just changed the urls structure of my site and want old urls to be forward to the new without the use of redirection plugin.
I am looking at ways to restrict direct access to the WordPress Uploads folder. I’ve read a handful of Stackoverflow and blog posts about using “wordpress_logged_in” in .htaccess to check if a person is logged in and if they are not to restrict them. See example of a snippet below.
My site was running well last summer. But today when I tried to make updates in the wp-admin section, I got lots of 403 errors on all PHP files: load-styles, load-scripts, edit.php, media-new.php, etc… The interesting thing is that the front-end of my site has no problems.
I’m trying to do something specific here, that may be a little complicated and I can’t figure out how to do it.
I have launched a WordPress instance on AWS using elastic beanstalk. Every now and then AWS restarts my server and when it does all my pages/posts links switch to returning 404.
My site runs on the latest version of WordPress. However, I have a problem with categories. Permalinks are set correctly and my category path looks like this: example.com/category-name. Links work fine, but the problem is, I can also access every category with a link like this: example.com/example.com/?cat=6, which contains no posts.
The scenario is as follows:
A multisite install with three sites:
In my previous post, I asked about how to 301 redirect all .com/language/X URLs to .com/members/?members_search=X using htaccess.