Forum Discussion
Tried to get this to work on my own Wordpress site, but all I got was this message when I would pull up the URL:
{"code":"rest_no_route","message":"No route was found matching the URL and request method.","data":{"status":404}}I went from https://domain.com/fff/wp-json/tv/roku/
to
https://domain.com/fff/wp-json/tv/roku/sample.json
When I redirect to https://domain.com/fff/sample.json I get a 404 error.
Looks like you're doing this backwards.
If you're using the redirect plugin (I use 301 Redirects, btw), you want to do this:
Redirect FROM:
https://domain.com/roku.json (this file doesn't actually exist)
Redirect TO:
http://domain.com/wp-json/tv/roku/ (this is the actual REST API json feed)
- ferdiworks2 years agoRoku Guru
The JSON feed file URL needs to end in a dot json = .json inside the SDK Template package!
WP Smart TV does not have an output URL as dot JSON = .json and it uses a URL like this: http://domain.com/wp-json/tv/roku/ so we use the redirect to rediret http://domain.com/wp-json/tv/roku.json to https://domain.com/roku/ so the SDK Package can see the JSON Feed file!
This has been tested and used by many WP Smart TV users converting to SDK and allowing them to still use the WP Smart TV Plugin!