[SOLVED] WordPress Rest API – how to remove index.php from the base path
-
Hi,
I am working at the test version of my website, test.my-site.com and I noticed that I couldn’t publish my posts, neither update em.When I tried to publish a post, an error message appeared: “Publishing failed. The response is not a valid JSON response.”.
I noticed that if I tried to reach the URL https://test.my-site.com/wp-json I had a 404 error page.
So I tried to reach https://test.my-site.com/index.php/wp-json and it worked.
I temporarely solved the problem by setting the permalinks of the site (WP Panel > Settings > Permalinks > Custom structure) this way: /index.php/%postname%/.
But now I would like to set the permalinks back to “Post name”.
Is there any way to remove “index.php” from the base path of WordPress Rest API, in order to use the simple “https://test.my-site.com/wp-json” path?
Where can I find the configuration file of WordPress Rest Api?
Thank you very much.
- This topic was modified 3 years, 6 months ago by .
- This topic was modified 3 years, 6 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘[SOLVED] WordPress Rest API – how to remove index.php from the base path’ is closed to new replies.