[Solved] File path issue

Popular automatic website translation tool

[Solved] File path issue

Postby pacowilson » Wed May 16, 2012 9:27 am

Hi, several months ago, we installed the Gtranslate. It's good. But we are facing a big problem, the Gtranslate automatically add prefix (such as es/fr/de) in our download file link. These auto generated file link caused huge amount of 404 error.

Example: http://www.domain.com/file/filename.pdf
In Spanish translation: http://www.domain.com/es/file/filename.pdf (404 page)

Please help me, how to solve this problem ?
pacowilson
 
Posts: 24
Joined: Thu Feb 23, 2012 5:37 pm

Re: File path issue

Postby pacowilson » Wed May 16, 2012 1:27 pm

no any reply ?

how to stop gtranslate add es/fr/de/ru...etc into specific url ? like the file download url.
pacowilson
 
Posts: 24
Joined: Thu Feb 23, 2012 5:37 pm

Re: File path issue

Postby Yana » Wed May 16, 2012 2:48 pm

Hi,
You can add a rewrite rulein your .htaccess to redirect your files.
Here is an example
RewriteRule ^([a-z]{2})/file/(.*) /file/$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: 4133
Joined: Thu Jan 12, 2012 6:21 pm

Re: File path issue

Postby pacowilson » Wed May 16, 2012 3:26 pm

It works. Solved the problem, Thanks !
pacowilson
 
Posts: 24
Joined: Thu Feb 23, 2012 5:37 pm

Re: [Solved] File path issue

Postby Yana » Wed May 16, 2012 4:18 pm

I'm glad I could help you.
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: 4133
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