Worpress + Gtranslate entreprise and WP_SITEURL

Popular automatic website translation tool

Worpress + Gtranslate entreprise and WP_SITEURL

Postby DenisC » Thu Jun 19, 2014 11:44 am

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:
Code: Select all
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
Code: Select all
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
Last edited by DenisC on Thu Jun 26, 2014 5:39 pm, edited 1 time in total.
DenisC
 
Posts: 11
Joined: Thu Jun 19, 2014 11:20 am

Re: Worpress + Gtranslate pro and WP_SITEURL

Postby DenisC » Thu Jun 19, 2014 2:16 pm

Fixed by
Code: Select all
      <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
DenisC
 
Posts: 11
Joined: Thu Jun 19, 2014 11:20 am

Re: Worpress + Gtranslate pro and WP_SITEURL

Postby Edvard » Thu Jun 19, 2014 10:50 pm

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!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Worpress + Gtranslate pro and WP_SITEURL

Postby DenisC » Thu Jun 26, 2014 10:43 am

Move to gtranslate pro, topic closed
DenisC
 
Posts: 11
Joined: Thu Jun 19, 2014 11:20 am

Re: Worpress + Gtranslate pro and WP_SITEURL

Postby Edvard » Thu Jun 26, 2014 4:06 pm

Thanks!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Worpress + Gtranslate entreprise and WP_SITEURL

Postby DenisC » Thu Jun 26, 2014 5:41 pm

Reopen after wordpress-classipress-forms-post-empty-t3718.html#p16117

Actually
Code: Select all
define('WP_SITEURL', 'http://traveler-change.com');
define('WP_HOME', 'http://traveler-change.com');


Just waiting for licence :)
DenisC
 
Posts: 11
Joined: Thu Jun 19, 2014 11:20 am

Re: Worpress + Gtranslate entreprise and WP_SITEURL

Postby Edvard » Fri Jun 27, 2014 10:45 am

Hi,

Your license is active. Please open a new topic if you have any other issues.

Thanks!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux
cron