Forum Archive - Worpress + Gtranslate entreprise and WP_SITEURL

Worpress + Gtranslate entreprise and WP_SITEURL
Jun 19, 2014 7:44 am by DenisC
Hi, On a wordpress server i have some problem to have : - Clean link with fr.example.org and http://www.example.org - Ajax request with the same server name. If i set: define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST']); define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']); I have my webpage for each language OK : http://fr.example.org BUT all ajax call and js file link goest to http://example.org then have Cross-Origin Request bloqued. If i use define('WP_SITEURL', 'http://www.example.org'); define('WP_HOME', 'http://www.example.org'); The all language.example.org are redirected to http://www.example.org (by wordpress) Thanks
Re: Worpress + Gtranslate pro and WP_SITEURL
Jun 19, 2014 10:16 am by DenisC
Fixed by <Directory /var/www> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all Header set Access-Control-Allow-Origin "*" php_value session.cookie_domain ".example.com" </Directory>BUT : i want to remove Header set Access-Control-Allow-Origin "*" and have clean call for URL. And too : redirect example.org to http://www.example.org
Re: Worpress + Gtranslate pro and WP_SITEURL
Jun 19, 2014 6:50 pm by Edvard
It is not a good solution. What is your website address, I can check and provide an easier solution. How I can see an ajax call? Thanks!
Re: Worpress + Gtranslate pro and WP_SITEURL
Jun 26, 2014 6:43 am by DenisC
Move to gtranslate pro, topic closed
Re: Worpress + Gtranslate pro and WP_SITEURL
Jun 26, 2014 12:06 pm by Edvard
Thanks!
Re: Worpress + Gtranslate entreprise and WP_SITEURL
Jun 26, 2014 1:41 pm by DenisC
Reopen after wordpress-classipress-forms-post-empty-t3718.html#p16117 Actually define('WP_SITEURL', 'http://traveler-change.com'); define('WP_HOME', 'http://traveler-change.com'); Just waiting for licence :)
Re: Worpress + Gtranslate entreprise and WP_SITEURL
Jun 27, 2014 6:45 am by Edvard
Hi, Your license is active. Please open a new topic if you have any other issues. Thanks!

SIMILAR TOPICS

Gtranslate MultisiteFeb 12, 2019 7:27 amReplies: 1Post by: infact_dat
Gtranslate: Error with numberFeb 20, 2019 1:20 amReplies: 1Post by: infact_dat
GTranslate 3.7.4, Joomla 3.9.3 - doGTranslate is not definedFeb 22, 2019 12:34 pmReplies: 1Post by: oase
Add-on gtranslate no longer worksFeb 2, 2019 6:01 amReplies: 1Post by: DarylDixon
Instragram and Gtranslate...!!!!Dec 19, 2018 11:18 amReplies: 1Post by: zackfernandes

Try GTranslate with a free 15 day trial