APP <=> WOOCOMMERCE connection problem


Hi, although I have installed and activated the plugin on my woocommerce I am unable to interface the two platforms.

Could you please check?
thank you

Hi @dralfio

I wonder why your WordPress basic API is not working with the default link?

It should be accessed from here: https://hlifeitalia.it/wp-json

Also can you please share with me the permalinks settings ? Is it post name or something else?

Thank you for your help.

Here the screenshot of the permalinks setting:

but i think the problem is also for this plugin: WooCommerce Permalink Settings

That it configured like that:

Hope this can help you. Thanks again

@dralfio

Can you please add those 3 lines to the htaccess to make the API work regardless the permalink configuration?

RewriteEngine On
RewriteBase /
RewriteRule ^wp-json/(.*) /?rest_route=/$1 [L]

Let me know once done so that I can test

Also what is the use case of this plugin " WooCommerce Permalink Settings " ?

Can you deactivate it and test ?

Hi Bassam, i have add only this row on htaccess:

RewriteRule ^wp-json/(.*) /?rest_route=/$1 [L]

because these others two was there
RewriteEngine On
RewriteBase /

My htaccess now is like this:

the content has been removed for privacy considerations

I also disabled “WooCommerce Permalink Settings” plugin but unfortunately I can’t connect the app to woocommerce :frowning:

Thank you

Hello Bassam Tarek, do you have some news, please? Thanks.

Hello @dralfio

Please take a backup from your .htaccess file and update its content with the below

the content has been removed for privacy considerations

Let me know how it goes

Thank you so much, unfortunately that code generate that error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@hlifeitalia.it to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

I just updated your plugin to 4.5 version but unfortunately it doesn’t work :frowning:

Do you have staging server that you can give me an access to ? maybe an ssh access to the Wordpress folder ?

no, sorry.

but if you want me to make some changes I’m at your disposal

Let’s schedule a zoom meeting to fix this issue, please send me your available time

for me also now, no problem

Will Tomorrow Monday 2 PM GMT+2 works for you?

ok, thank you so much

@dralfio Waiting for you