Solved by this lines:
RewriteEngine On RewriteBase / RewriteRule ^wp-json/(.*) /?rest_route=/$1 [L]
Related Posts:
- How can i redirect one url to another url using .htaccess or add_rewrite_rule
- htaccess rewrite conflict with wordpress rules and ssl
- index.php not loading in main folder of wordpress
- WordPress site displaying 404 for any page apart from index
- .htaccess Rewrite URL WordPress
- 404/500 error on /wp-json
- Does WP Have a Function To Generate .htaccess RewriteCond?
- different child theme for subdomain
- Struggling with add_rewrite_rule
- Redirect from different port to subdomain – htaccess
- .htaccess rewrite rule puzzle
- need a help for modify .htaccess rule [closed]
- Best way to redirect site in subdirectory to root?
- WordPress 404 on Subdomain
- Only expose routes with prefix /wp-json on WordPress using Apache
- What’s the opposite of required valid user in .htaccess authentication
- Override htacces rule only for specific directory
- Restrict uploaded files into a custom folder to logged in users by htaccess: looking for Nginx – not only Apache – solution
- Case insensitive header params for API request
- How do I test to ensure that my wp-config file is protected?
- .htaccess Security Header Rules
- Apache Fallback instead of add_rewrite_rule
- mod_rewrite loop, redirecting http to https on certain section of wordpress blog
- .htaccess in subdir gets ignored by WordPress’ own .htaccess in /
- TimThumb & htaccess : clean url
- What to write in the htaccess in order to detect browser language and point accordingly?
- want to rewrite an URL in wordpress
- Directing subdomain to main domain and keeping the subdomain format with .htaccess
- WordPress – Promoting A Dev Build In A Subdirectory To Production / Root Directory
- Allow REST API over HTTP, the rest of the site forced to HTTPS
- Redirect old domain with query paramaters
- Does WP suppresses .htaccess if permalinks are disabled?
- How to turn this .htaccess rule into a dynamic rule with add_rewrite_rule, et al?
- htaccess problem not being able to overwrite previous rules
- add_rewrite_rule to remove /category/ from permalink
- Relative links stop working after moving wordpress site from hosting to localhost
- fix 302 redirection error on https
- Access sub-domain when root public_html is protected with .htaccess password
- htaccess redirect throws an error: PHP Catchable fatal error: Object of class WP_Error could not be converted to string
- Rewrite Rules not redirecting rewrite
- Accepting special characters in querystring
- Rewrite URL in address bar for a specific page [closed]
- WordPress permalinks confusion
- How do I reset a rewrite?
- Configure .htaccess to have a WordPress single site installation with all subdomains pointing to the same pages?
- Rewriting subfolders to specific parent folder in WordPress
- Redirect default pagination page to template page’s pagination
- Unable leverage Browser Caching on AWS Bitnami stack (Apache) through W3TC and Cloudfront CDN
- Remove subdirectory from links
- How to move wordpress website from hosting account to localhost
- Rewrite rules and maintain URL
- WordPress URL not working?
- How to block wordpress admin by htaccess
- Rewrite /keyword1+keyword2.html to search page | .htaccess
- I can access subdirectory, but not files within it
- What to do after a wrong RewriteRule?
- Can’t get pretty permalinks to work without index.php
- rewrite rule on plugin activation
- .htaccess rewrite rule stopped working for wordpress site after moving server
- WordPress redirection
- How To Add CSP frame ancestors in WordPress Website? [closed]
- Subfolder install not working
- WP-Include rewrite directory
- Browser Caching .htaccess
- Hardening WordPress – how to set .htaccess permissions?
- Avoid duplicate content on pretty URLs with htaccess
- How can I use an .htaccess file in Nginx?
- .htaccess redirect http to https
- Redirect vs RedirectMatch
- How to automatically redirect HTTP to HTTPS on Apache servers?
- htaccess – Redirect to subfolder without changing browser URL
- How do I disable directory browsing?
- Https to http redirect using htaccess
- Getting a 500 Internal Server Error on Laravel 5+ Ubuntu 14.04
- How to remove index.php from WordPress site URL
- .htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration
- Redirect old php link to wordpress link in .htaccess
- Redirect old php link to wordpress link in .htaccess
- Cant login to wp-admin (redirecting to homepage), But CAN login to wp-login.php
- Cant login to wp-admin (redirecting to homepage), But CAN login to wp-login.php
- Best collection of code for your .htaccess file [closed]
- Default .htaccess file for WordPress?
- Which one does WordPress prioritize when it comes to php.ini, wp-config and .htaccess?
- Improve wordpress security by hiding non public resources
- WordPress site hacked. Has .htaccess been hacked?
- Does this .htaccess security setting really work?
- How to add custom rewrite rule to .htaccess?
- Use subdomain for certain urls
- htaccess problem after saving Settings
- cURL 28 error after switch from to brew php 7.2 on localhost
- Multisite htaccess on localhost with WP as an SVN external?
- Stop WordPress and Plugins from Overwriting .htaccess
- File and directory permissions
- htaccess disable WordPress rewrite rules for folder and its contents
- Old blog/ and blog/feed/ URLs not working after moving blog to top-level via .htaccess
- htaccess https redirect from www to non-www
- Htaccess for Wordpess set on single subdomain
- adding rewrite rules in .htaccess
- .htaccess and 500 error, extra character added
- Name-based virtual host configuration in Apache seems to cause a “500 Internal Server Error”