[Solved] File path issue
May 16, 2012 5:27 am by pacowilson
May 16, 2012 5:27 am by pacowilson
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 ?
Re: File path issue
May 16, 2012 9:27 am by pacowilson
May 16, 2012 9:27 am by pacowilson
no any reply ?
how to stop gtranslate add es/fr/de/ru...etc into specific url ? like the file download url.
Re: File path issue
May 16, 2012 10:48 am by Yana
May 16, 2012 10:48 am by Yana
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]
Re: File path issue
May 16, 2012 11:26 am by pacowilson
May 16, 2012 11:26 am by pacowilson
It works. Solved the problem, Thanks !
Re: [Solved] File path issue
May 16, 2012 12:18 pm by Yana
May 16, 2012 12:18 pm by Yana
I'm glad I could help you.
SIMILAR TOPICS
How to emulate subdomain/language in .htacces file | Aug 23, 2018 8:40 am | Replies: 1 | Post by: ramyrickson |
IONCUBE ISSUE | May 26, 2018 11:59 pm | Replies: 3 | Post by: apeks |
500 error - file not found | Mar 19, 2018 5:15 pm | Replies: 1 | Post by: bigblue |
Seem some issue with Jm3.8.2 & php 5.6 | Nov 20, 2017 5:03 am | Replies: 3 | Post by: fuzmic |
[SOLVED]double dropdown | Oct 26, 2017 8:26 am | Replies: 3 | Post by: danielesantosubito |