Results 1 to 5 of 5

Thread: site not braking out of the lang folder

  1. #1
    craig is offline Unknown Net Builder
    Join Date
    Apr 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    site not braking out of the lang folder

    Hi when i am on a folder

    www.mysite.com/folder/

    if i click lets say german its fine..

    www.mysite.com/folder/lang/de/

    but then it stickes and i can break out of it, say if i try to go to spanish i get this file with the error

    www.mysite.com/lang/de/folder/lang/es/folder/

    even trying to go back to english i get this

    www.mysite.com/lang/de/folder/lang/en/folder/

    it works fine on any non folder pages it can move throw the langs fine and it can break out.

    but the folder options translate but won,t break out of that folder.???

    anyone else seen this problem before or know how to fix it as i'm stumped

  2. #2
    dzak is offline Unknown Net Builder
    Join Date
    Feb 2010
    Posts
    11
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Are you using php?
    If so check at your .htaccess file the line under:
    # Various extentions that are not translated
    and remove php if exist

  3. #3
    craig is offline Unknown Net Builder
    Join Date
    Apr 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by dzak View Post
    Are you using php?
    If so check at your .htaccess file the line under:
    # Various extentions that are not translated
    and remove php if exist
    thanks for trying to help

    that was in there and i have removed it but it still locks in folders.

    the lower level works fine but as soon as a enter a folder page on the site it can not break out of folder pages.

    even if i try to go the the home page from a translated folder page it classes the folder as the / level and takes me to.

    www.mysite.com/lang/de/folder/

    click on a link that shoud be

    www.mysite.com/lang/de/file.html

    it takes me to

    www.mysite.com/lang/de/folder/file.html

    hope i have explaind this right, the main thing is once i hit a translated folder page it won't let me leave that folder and treats it as the lowest level of the site IE

    www.mysite.com

  4. #4
    craig is offline Unknown Net Builder
    Join Date
    Apr 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    would i be right in thinking my problem is to do with this rewrite code...

    RewriteRule ^[^/]+/(lang|ylang)/(.*)$ $1/$2 [R=301,L]

    i'm trying to get this...

    RewriteRule ^/lang/es/folder/$ /lang/de/folder/lang/es/folder/ [R=301,L]

    but my rewrite skills are not good enough to know if that is what the first code is supposed to do

  5. #5
    craig is offline Unknown Net Builder
    Join Date
    Apr 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi just an update as there dosn't seem to be any regular support here anymore for this scropt.

    i have found a very poor way of fixing this by adding this rewrite to the translate

    htaccess file

    RewriteRule ^[^/]+/de/folder/(.*)/(.*)$ ../$1/$2 [R=301,L]
    RewriteRule ^[^/]+/es/folder/(.*)/(.*)$ ../$1/$2 [R=301,L]
    RewriteRule ^[^/]+/fr/folder/(.*)/(.*)$ ../$1/$2 [R=301,L]
    RewriteRule ^[^/]+/it/folder/(.*)/(.*)$ ../$1/$2 [R=301,L]
    RewriteRule ^[^/]+/pt/folder/(.*)/(.*)$ ../$1/$2 [R=301,L]
    RewriteRule ^[^/]+/ru/folder/(.*)/(.*)$ ../$1/$2 [R=301,L]
    RewriteRule ^[^/]+/ja/folder(.*)/(.*)$ ../$1/$2 [R=301,L]
    RewriteRule ^[^/]+/ko/folder/(.*)/(.*)$ ../$1/$2 [R=301,L]
    RewriteRule ^[^/]+/zh/folder/(.*)/(.*)$ ../$1/$2 [R=301,L]
    RewriteRule ^[^/]+/nl/folder/(.*)/(.*)$ ../$1/$2 [R=301,L]
    RewriteRule ^[^/]+/el/folder/(.*)/(.*)$ ../$1/$2 [R=301,L]

    i had to do this for every folder on my site, not the best way to fix this but as i have only myself for help it the only one i could work out, hope this helps someone out

    there prob is a far shorter rewrite for this like

    RewriteRule ^[^/]+/(de|el|fr|etc|etc)/(.*)/(.*)/(.*)$ ../$1/$2 [R=301,L]

    but like i said above i am not great with mod rewrite and i think this problem is because of other rewrites i have on my site.

    hopefully some clever person will come here and give you a better fix but for me i just can't leave a busy live site with such a flaw.

    thanks again to dzak for trying to help out, but i think with Will going on the missing list this scripts days may be numbered which is a real shame as i have been running it on my site for years now.

Similar Threads

  1. how can i download a folder in the file manager?
    By garfish in forum Web Hosting
    Replies: 5
    Last Post: 4 June, 2010, 17:59 PM
  2. Replies: 6
    Last Post: 4 December, 2009, 19:04 PM
  3. Why you can't make a folder with name CON in you PC?
    By Digital in forum General Chat
    Replies: 7
    Last Post: 24 August, 2009, 14:06 PM
  4. configuring to translate root folder?
    By moltovivo1 in forum Translation Script Support
    Replies: 12
    Last Post: 6 August, 2009, 12:10 PM
  5. Translator Script in Sub Folder
    By kabalweg in forum Translation Script Support
    Replies: 8
    Last Post: 23 April, 2009, 23:22 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •