• Hi! I am working on a dropshipping website built on the sub-domain annonceme.com/store and the dropshipping suppliers require WordPress Rest API to be active. I do not have any knowledge about WordPress Rest API and I need help with it.

    The website shows JSON data for the main domain but it does not show JSON data for the sub-domain [ redundant link removed ] and encounters a 404 error.

    Please guide me on why it is giving this issue and how can I make the WordPress Rest API active for the sub-domain and make the JSON data for it available.

    Thank You!

    • This topic was modified 2 years, 6 months ago by Sania Syed.
    • This topic was modified 2 years, 6 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
    • This topic was modified 2 years, 5 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • I just tried to recreate this for myself and can’t figure it out. For me, the API works on the subsite if this is a subdirectory. It also works for subdomains.

    Therefore, I suspect that you have a problem in the server configuration. Can you try to call the API by parameter instead of SEO URL? So:

    https://annonceme.com/store/?rest_route=/

    If that doesn’t work:
    Do you have an Apache or nginx as web server?
    If Apache: what does the .htaccess look like?

    Thread Starter Sania Syed

    (@saniasyed)

    Thank you for your reply.

    Yes the API is working by parameter instead of SEO URL.

    Please guide if it will work fine with dropshipping site or I need to make some changes to make it work by SEO URL too.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress Rest API active for main domain but not working for sub-domain’ is closed to new replies.