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?
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?
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.
hi will,
that's correct, but that URL will not translate the page ,it just outputs the original.
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.
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.
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.
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.
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.
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.
in fact, Example Web Page doesn't translate - only www.example.com/index.htm
Bookmarks