Resource redirection

Popular automatic website translation tool

Resource redirection

Postby Michael_H » Mon Oct 07, 2013 2:31 pm

Hi

I have a folder/directory on the server and which contain a set of resources for all languages (flash and zip files). The resources as displayed on a table and the same view must be displayed no matter which language is select.

The problem is that when a different language is select the URL for these resources change and an error is generated saying resource not found.

An example of the table of resources can be found at the following link;

http://www.barefoottrainer.org/?q=node/12

Can someone tell me how to stop this?

Regards

Michael
Michael_H
 
Posts: 8
Joined: Mon Jun 03, 2013 2:12 pm

Re: Resource redirection

Postby Yana » Mon Oct 07, 2013 8:18 pm

Hi,
I tried to manually add the language code and can see the translated version
http://www.barefoottrainer.org/el/?q=node/12

Please check gtranslate redirection rules.

As to the zip and swf files you can add redirection rule to remove the language code for that files .
here is an example:
RewriteRule ^([a-z]{2})/path_to_the_folder/(.*) /path_to_the_folder/$2 [R=301,L]
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4135
Joined: Thu Jan 12, 2012 6:21 pm

Re: Resource redirection

Postby Michael_H » Mon Oct 07, 2013 10:57 pm

Hi Yana

I have tried this but had no success. Here is my code, can you see any obvious errors?

RewriteRule ^([a-z]{2})\/sites\/default\/files\/Files\/Unit\%20Materials\/(.*) \/sites\/default\/files\/Files\/Unit\%20Materials\/$2 [R=301,L]

Many thanks

Michael
Michael_H
 
Posts: 8
Joined: Mon Jun 03, 2013 2:12 pm

Re: Resource redirection

Postby Yana » Tue Oct 08, 2013 7:12 pm

HI,
Please try to put the following rule (just copy and paste ) after RewriteEngine On

RewriteRule ^([a-z]{2})/sites/default/files/Files/(.*) /sites/default/files/Files/$2 [R=301,L]
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4135
Joined: Thu Jan 12, 2012 6:21 pm

Re: Resource redirection

Postby Michael_H » Wed Oct 09, 2013 12:01 am

Yana

You are a star!!

That worked perfectly

Many thanks

Michael
Michael_H
 
Posts: 8
Joined: Mon Jun 03, 2013 2:12 pm

Re: Resource redirection

Postby Yana » Wed Oct 09, 2013 12:45 pm

Good to hear that! You're welcome.
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4135
Joined: Thu Jan 12, 2012 6:21 pm


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux