Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: configuring to translate root folder?

  1. #1
    moltovivo1 is offline Unknown Net Builder
    Join Date
    Jul 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    configuring to translate root folder?

    I have a lot of mod_rewrite folders in my site of the form:
    http://www.example.com/test/53

    How can I make the script translate these?

  2. #2
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,329 Times in 1,259 Posts
    http://www.example.com/test/53 would just become http://www.example.com/lang/es/test/53 or http://www.example.com/lang/pt/test/53.

    I may not be understanding your question properly?
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

  3. #3
    moltovivo1 is offline Unknown Net Builder
    Join Date
    Jul 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hi will,
    that's correct, but that URL will not translate the page ,it just outputs the original.

  4. #4
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,329 Times in 1,259 Posts
    I've seen that behavior before, but I cannot remember what the cause was.

    What do you see in the Apache error log for your vhost?
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

  5. #5
    moltovivo1 is offline Unknown Net Builder
    Join Date
    Jul 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No error is logged.

    Actually it will output the original page for that sort of address even if I delete the .htaccess file from the lang folder.

    So .htaccess is not capturing the URL and passing it on to translate.php.

    Unfortunately I'm clueless with .htaccess, I'd appreciate any hints in the right direction.

  6. #6
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,329 Times in 1,259 Posts
    If .htaccess isn't being called, that usually points to an issue with the hosting company not supporting it.

    Have you tried some of the more agressive debugging options documented in Translation Script Troubleshooting Tips?
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

  7. #7
    moltovivo1 is offline Unknown Net Builder
    Join Date
    Jul 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    htaccess is being called - it works fine for URLs of the form www.example.com/lang/fr/page.htm
    but it not for
    www.example.com/lang/fr/folder/2

    clearly another line is needed in htaccess to allow it to capture and property redirect urls of that form.

  8. #8
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,329 Times in 1,259 Posts
    Do you think the problem is that the second example uses a subdirectory inside a subdirectory or that the second example doesn't use a file extension?

    I can look into this when I get back from India.
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

  9. #9
    moltovivo1 is offline Unknown Net Builder
    Join Date
    Jul 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yes, as far as I can tell from my limited knowledge of htaccess and some messing around, it is the absense of a file extension that causes htaccess to bypass the translate.php script.

  10. #10
    moltovivo1 is offline Unknown Net Builder
    Join Date
    Jul 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    in fact, Example Web Page doesn't translate - only www.example.com/index.htm

Page 1 of 2 12 LastLast

Similar Threads

  1. Trouble Configuring GoDaddy Hosting
    By ayebea in forum Managing
    Replies: 0
    Last Post: 9 September, 2009, 17:38 PM
  2. 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
  3. Disable Direct Root Logins
    By mega in forum Managing
    Replies: 1
    Last Post: 14 May, 2009, 09:16 AM
  4. Translator Script in Sub Folder
    By kabalweg in forum Translation Script Support
    Replies: 8
    Last Post: 23 April, 2009, 23:22 PM
  5. Configuring the Translation Script to Use Subdomains
    By Will.Spencer in forum Translation Script Support
    Replies: 0
    Last Post: 5 February, 2009, 05:48 AM

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
  •