PDA

View Full Version : Localization + Mod Rewrite


Jean Boucher
06-14-2011, 08:45 PM
I am using an .htaccess that I have found here:
https://www.vbulletin.com/forum/showthread.php/325798-Mod-Rewrite-Friendly-URLs-gt-.htaccess/page15

My Forum will be in French & we use accented characters...
The problem is: with Mod Rewrite the accented caracters are being used in the composition of the URLS...

Example here:
http://www.tribuseo.com/threads/2-2e-test-accents-???

Jean Boucher
06-18-2011, 03:23 PM
Found this:
http://www.unexpectedit.com/php/php-clean-string-of-utf8-chars-convert-to-similar-ascii-char

and this:
http://www.yourinspirationweb.com/en/the-mod_rewrite-and-the-magic-of-rewriting-the-url-second-part/

but I don't know how to implement it

LifesGreatestGift
06-19-2011, 02:26 AM
You don't want to use mod_rewrite/.htaccess, should ideally be done in php.

You using UTF-8?

Look into something like this
https://www.vbulletin.com/forum/showthread.php/358812-My-guide-to-converting-to-UTF-8

--------------- Added 1308502327 at 1308502327 ---------------

Actually, try this

AdminCP>Settings>Options>Friendly URLs>

Look at Friendly URL Unicode

And try the different settings to see which one best suits your site URL format.

Jean Boucher
06-20-2011, 12:31 AM
Yes I am using UTF-8

Here is a screen capture of a test URL:

http://www.tribuseo.com/accents.png

As you can see I have accented characters in the URL.

You were mentionning doing this in PHP

How do I do this?
Which file?