OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?

Joomla Translate component support

Go to bottom Favoured: 0

Problem JQuery and redirect mode

austudioglobal@gmail.com (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
problem JQuery and redirect mode 5 Years, 5 Months ago
Karma: 0  
Hello, We have some problem use translate mode JQuery and redirect, when using instant mode is work fine.
When change to JQuery the flag button no respond.
When change to redirect then page no found "404 not found".

We using Nginx, do we need to add the rewrite rule to .htaccess as apache server ? if yes how to add rewrite rule to nginx ?
Thank you.

Below is our system info:

System Information
SEF Translate:v 4.2 Commerce

PHP Built On Linux mybet-site1 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u4 (2018-08-21) x86_64
Database Type mysql
Database Version 5.5.5-10.3.9-MariaDB-1:10.3.9+maria~stretch
Database Collation utf8_general_ci
Database Connection Collation utf8mb4_general_ci
PHP Version 7.0.33-0+deb9u3
Web Server nginx/1.10.3
WebServer to PHP Interface fpm-fcgi
Joomla! Version Joomla! 3.9.10 Stable [ Amani ] 10-July-2019 15:57 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8367
graph
User Offline Click here to see the profile of this user
Re:problem JQuery and redirect mode 5 Years, 5 Months ago
Karma: 102  
Hello

For your site translate, if you use SefTranslate (ordasoft.com/sef-translate-joomla-translation-component) with Redirect method,
You need enable rewrite mode.
If you use nginx rewrite rules
Please check:
www.keycdn.com/support/nginx-rewrite-rules

If error continue exists
Could you give to us
full FTP and supper admin access
and our team will find solution special for You, FTP and admin access You can send to our contact form.
ordasoft.com/contact-us-form

We need:

Link on website.

Detail description: How reproduce error. Step by step. Detail description: how we may reproduce this.

Site Super Admin:
username
password

FTP:
FTP host
FTP username
FTP password

Thanks,
Andrew
OrdaSoft team.
P.S. Please do site backup 2 times per month
Logged Logged
The administrator has disabled public write access.
austudioglobal@gmail.com (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:problem JQuery and redirect mode 5 Years, 4 Months ago
Karma: 0  
Thank you for reply, as suggest i add the rewrite rules to nginx, is still now work, check attached image for the error.

User and password I will send by email.

Thanks for support.


# nginx rewrite rules

location / {
rewrite "^/([a-z]{2})/(.*)$" /components/com_seftranslate/translate.php?;
rewrite "^/([a-z]{2})$" /components/com_seftranslate/translate.php?seflang=$1 break;
}

location /pt-PT {
rewrite ^(.*)$ /components/com_seftranslate/translate.php?;
rewrite ^/(pt-PT)$ /components/com_seftranslate/translate.php?seflang=$1 break;
}

location /zh-CN {
rewrite ^(.*)$ /components/com_seftranslate/translate.php?;
rewrite ^/(zh-CN)$ /components/com_seftranslate/translate.php?seflang=$1 break;
}

location /zh-TW {
rewrite ^(.*)$ /components/com_seftranslate/translate.php?;
rewrite ^/(zh-TW)$ /components/com_seftranslate/translate.php?seflang=$1 break;
}

location /bs-Latn {
rewrite ^(.*)$ /components/com_seftranslate/translate.php?;
rewrite ^/(bs-Latn)$ /components/com_seftranslate/translate.php?seflang=$1 break;
}

location /ceb {
rewrite ^/(ceb)/(.*)$ /components/com_seftranslate/translate.php?seflang=$1&sefurl=$2;
rewrite ^/(ceb)$ /components/com_seftranslate/translate.php?seflang=$1 break;
}

location /hmn {
rewrite ^/(hmn)/(.*)$ /components/com_seftranslate/translate.php?seflang=$1&sefurl=$2;
rewrite ^/(hmn)$ /components/com_seftranslate/translate.php?seflang=$1 break;
}

location /mww {
rewrite ^(.*)$ /components/com_seftranslate/translate.php?;
rewrite ^/(mww)$ /components/com_seftranslate/translate.php?seflang=$1 break;
}

location /yua {
rewrite ^/(yua)/(.*)$ /components/com_seftranslate/translate.php?seflang=$1&sefurl=$2;
rewrite ^/(yua)$ /components/com_seftranslate/translate.php?seflang=$1 break;
}
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8367
graph
User Offline Click here to see the profile of this user
Re:problem JQuery and redirect mode 5 Years, 4 Months ago
Karma: 102  
Hello

We replied to you by email

Please try create check first for 1 language, as example russian:
Code:

RewriteRule ^(ru)/(.*)$ components/com_seftranslate/translate.php?seflang=$1&sefurl=$2 [L,QSA]
RewriteRule ^(ru)$ components/com_seftranslate/translate.php?seflang=$1 [L,QSA]



Code:

location /ru {
  rewrite ^/(ru)/(.*)$ /components/com_seftranslate/translate.php?seflang=$1&sefurl=$2 break;
  rewrite ^/(ru)$ /components/com_seftranslate/translate.php?seflang=$1 break;
}




Regards
Ordasoft team
Logged Logged
The administrator has disabled public write access.
Go to top
»