 sarahI
|
Hi Drazan
Yes we set up a custom language for US, I'm not sure if you have access to previous tickets but we did get some advice of how to do this.
This is the link to the older post / ticket
hidden link
We're not that far into any sort of translations so if we need to set up WPML again then thats not an issue
We just need default language to be US (not English with UK flag)
Andy
|
 Dražen
Supporter
Languages:
English (English )
Timezone:
Europe/Zagreb (GMT+02:00)
|
Hello Andy,
Thank you for getting back to me — I understand the process now.
I’ll share this with our second-tier team so they can continue investigating.
We are still checking, because as you know, everything worked fine a few days ago, and now the same issue has appeared again. It also works correctly on our side and with a copy of your website, so it’s a bit difficult to understand why it only happens on your end.
In any case, we’re looking into it further and I’ll update you soon.
Regards,
Drazen
|
 Dražen
Supporter
Languages:
English (English )
Timezone:
Europe/Zagreb (GMT+02:00)
|
Hello Andy,
After investigating, we found that the issue on your server is caused by 301 redirects being applied to WordPress REST API requests. For example, a request like:
hidden link
is automatically redirected to, notice the last slash
hidden link
The problem is that the original request is a POST request (used to save page content), but the redirect changes it into a GET request. Because of this, the content cannot be saved.
It appears that there are server-level rules enforcing trailing slashes, and these redirects are interfering with REST API calls. If you speak with your hosting provider, they should be able to identify and adjust the redirect rules causing this.
You can see the behaviour yourself by opening the first URL in a browser — it automatically redirects. Any redirect will turn a PUT/POST request into a GET request, which is exactly what’s happening when trying to edit and save pages.
Regards,
Drazen
|
 sarahI
|
Hi Drazen
Thanks for the update, I'll take this up with Siteground to see what they think. I may need to check there is nothing on the live website that requires this.
I will keep you posted
Andy
|
 Dražen
Supporter
Languages:
English (English )
Timezone:
Europe/Zagreb (GMT+02:00)
|
Hello Andy,
sure, sounds good.
Thanks and kind regards,
Drazen
|
 sarahI
|
Hi Drazan
I've checked the htaccess on the main site and we've got this in place
# Force trailing slash
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_URI} /+[^\.]+$
RewriteCond %{REQUEST_URI} !^/wp-json
RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]
</IfModule>
I'm just getting some advice on whether we can adjust this or have a separate htaccess to disable this on the sub folder.
Thanks
Andy
|
 Dražen
Supporter
Languages:
English (English )
Timezone:
Europe/Zagreb (GMT+02:00)
|
Hello Andy,
I’m not certain whether this was added by your hosting provider or through another server-level configuration.
As mentioned earlier, the best approach would be to check this further with your hosting support and clarify any questions with them, including the best way to disable the mentioned redirect on your staging site or live website. Suggesting any change in hosting / server configuration from our side when we are not sure how/why it was added would not be really safe or correct thing to do.
Hope you understand.
Regards,
Dražen
|
 sarahI
|
Hi Drazan
We've amended the htaccess rule in staging5 and also in the /global/ folder on the main folder.
I 'think' this has sorted this issue, I can certainly save and publish now. If you wouldn't mind just double checking the staging5 to confirm all expected features are working as they should then hopefully we can finally close this one off.
Thanks so much for your help
Andy
|
 Dražen
Supporter
Languages:
English (English )
Timezone:
Europe/Zagreb (GMT+02:00)
|
Hello Andy,
great, thanks for updating us.
I have checked and tried few things / settings and it all looks good to me. I think we can close here.
Kind regards and all the best!
Drazen
|
 sarahI
|
Great, thanks for all your help. If we encounter any more issues we will let you know.
|