Open /wp-json response with "forbidden_access" - wordpress

I installed a customer project on my local machine.
I want to create a new REST API route.
On the live website, i can see the wp-json data.
But when i call the wp-json on localhost, i get this message:
I have a couple of wordpress websites on localhost and everyone work without any problems. Instead of this wordpress installation. I already uninstalled all plugins and the message still appear.
Has anyone an idea to solve this problem?

This could be a permalink issue, go to Settings > Permalinks and change the setting to "Post name" and save settings, then check if you get the same issue or not.

Related

Wordpress 404 issue after Migration in Plesk (Nginx config issue)

I recently migrated my website to DigitalOcean under plesk panel using all in one migration plugin. I kept having issues with 404 error only for pages that used permalinks configured as %postname%. For better URL format for my Content. But now if I enable the permalink I keep getting 404 error.
I used the popular suggestion of editing the nginx conf file through (through putty).
https://www.cyberciti.biz/faq/how-to-configure-nginx-for-wordpress-permalinks/
I wasn't sure of the save and exit step given after using the editor. ctrl+X shows a set of ^O^D commands. I pressed ^O and restarted it.
Now my entire website looks broken. Due to many 500 internal errors. What am I doing wrong here? kindly help me out please?
My website address is https://ourmoon.life/

Added new WordPress site on GCP with Marketplace. Publishing fails. Link cloaker fails

In Launching WordPress installation, in GCP, I cannot post with the error "publishing failed.". I tried both without updating and with updating to WP 5.4.1. I am having a hell of a time deploying WordPress in GCP. The permalinks don't work and I change the timezone, i am guessing or set the Site URL to vetsforweed.net and updated the A record at my Namecheap DNS to the external ip. sometimes the site locks up and I have to delete the vm instance and redploy. I have installed WordPress at least 10 times trying to get a working installation.
I switched to the classic Editor, I am able to publish. the post uses the permalinks setting of Post name: and it tells me the post link is : http://34.73.194.87/petition for a post titled "Petition" and I get a 404 Not found. I had done Settings...Permalinks to Post name:. I am so stuck!
What a nightmare! I cannot get anything to work with WordPress 5.4.1, no posts show up with a permalink. I cannot even click the date to see the post. It does show up in the list of Posts. Argg!
Is WordPress 5.4.1 known to be broken? What can I do to get a WordPress site up and running well? I appreciate you for your assistance.
I switched to loading WordPress Certified by Bitnami and Automattic and this worked, completely. So far. Now I have to import a WP export that is 136MB. Firs, I will deploy WordPress Certified by Bitnami and Automattic there.
Thanks for assistance.

Wordpress giving 404 error after url change

Just recently setup Wordpress on Server 2016 through IIS. Everything works fine at the defaults, with localhost as the defaults. However, whenever I add bindings to the site, it begins to not work and will give an error.
Error code is here.
Permissions seem to be fine, unless I missed an important step.
Anyone have any ideas on how to fix this? I can no longer access via localhost, the IP, or the domain name.
You need to update Permalink.
go your Dashboard -> Setting -> permalink
click on save change button. Here you can change URL structure for your permalinks and archives.

getting 404 error on wordpress pages

I've seen some other people with the same issue on net,
but the solution that worked for them (updating the .htacess file), didn't go very well for me!
I used buddypress to migrate my wordpress site to my local pc, but after everything is setup, only the home page is working, other posts or pages are getting 404 errors, I also tried to deactivate plugins and changing the theme, but nothing worked.
I'm on windows 10 and i'm using wampserver 2.5.
I think that the issue is caused by Apache, but I don't know how to fix it!
my Apache version is 2.4.9
Thanks in advance guys :)
Your site’s permalink (WordPress Admin > Settings > Permalink) is set as Default, please change it to any of the other option available below. e.g: Day and name, Post name etc.
Then you’ll be able to access the board instead of the 404 error.
Another way is troubleshooting:
WordPress sites can complicate the 404 troubleshooting process. Why? WordPress is a content management system that processes its own internal rewrite array as a part of its permalinks feature.
The first step to troubleshooting 404s is to figure out whether the 404 is being caused by the web server or by WordPress.
Static file
If your file is static (e.g. a jpg image) open your FTP client and verify that the file exists.
As an example, let’s say that the URL http://example.com/wp-content/uploads/picture.jpg is producing a 404 error. You will want to:
Open FTP Client and connect to your server (if you don’t know how to do so, read this.)
Navigate to the file’s location
Verify that the file exists
If it is does not exist, you have found the source of your 404.
However, it it does exist, yet pulling the URL up in a browser results in a 404 error, continue on to find out whether the issue is web server-based or WordPress-based.
Reference Link: http://websynthesis.com/fixing-wordpress-404-errors/

Wordpress clone on Dreamhost

So I created a new subdomain on Dreamhost. One-click installed Wordpress. Fresh Copied the olddomain.com to newdomain.com exported all the tables with the drop attribute to the new wordpress database via phpmyadmin. Then followed this post to update the urls.
The site doesn't load, giving me this error message:
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to accept cookies.
I would make sure to check the 'www' rules in Fully Hosted (from the web panel: Manage Domains > Web Hosting > Edit), compared with your site URL settings in the WordPress dashboard. Make sure those aren't conflicting first.
If you need further assistance, just let me know the domain name and I can take a look. Please also feel free to start a LiveChat from the panel or submit a ticket; our support team is here to help 24/7!
Thanks!
Ellice S
DreamHost Staff
I finally ended up creating an empty site and then using the WP Duplicator plugin. Worked like a charm!

Resources