PDA

View Full Version : Friendly URL in different language


WSzP
10-15-2010, 12:45 AM
Hello,
I enabled Friendly URLs, and uploaded the .htaccess, and set it to Mod Rewrite Friendly URLs.
The problem is that instead of threads/1-valami, I want a valamimas/1-valami, since threads is obviously an English word, and I want a Hungarian word instead of it.
And idea how to solve thins?
Thanks a lot,
WSzP

Bradley_Wint
10-15-2010, 01:25 AM
Name the forum appropriately and it will change the URL.

WSzP
10-15-2010, 09:09 AM
The forum name is totally different, and it has nothing to do with mod_rewrite using this kind of structure.

RewriteRule ^threads/.* showthread.php [QSA]
RewriteRule ^forums/.* forumdisplay.php [QSA]
RewriteRule ^members/.* member.php [QSA]
RewriteRule ^blogs/.* blog.php [QSA]
ReWriteRule ^entries/.* entry.php [QSA]

In .htaccess the above rules contains words like threads, and members, that should be translated. Now the problem is, that obviously if I change it in the .htaccess it will not work, since vB4 will not know that, and still generate links that point to ^threads/.* instead of what I changed, so it will not work. The question is how to modify it so I can change threads to something else.

Brandon Sheley
10-15-2010, 02:09 PM
It's best if you ask at vb.com about this ;)

WSzP
10-15-2010, 07:51 PM
They told me to ask in here. :) It needs a modification, custom build .htaccess or something like that.

Lynne
10-15-2010, 09:52 PM
Perhaps take a look at the class "vB_Friendly_Url" in includes/class_friendly_url.php