On Mar 26, 2008, at 12:58 PM, Wade Preston Shearer wrote:
I'd like to do something like this. Can you share details?

I would be happy to as soon as I am done.

I look forward to it. (Seriously)

You aren't using multiviews, right?

I don't think so. I'm not sure what multiviews are.

Multiviews are content negotiation. You create index.php.en, index.php.es, and index.php.fr, and Apache will pick the best one based on the Accept-Language header from the browser, or using the "prefer-language" environment variable. You can also use content negotiation to pick among different formats. For example, your image could be available as image.jpg, image.gif, and image.png and then let Apache pick the best one based on the browser preferences.

http://httpd.apache.org/docs/1.3/content-negotiation.html

Does /index.php forward to /de/index.php for German speakers that have the cookie?

That will be the behavior, yes, but mod_rewrite will do the forwarding and not PHP.

I suppose you don't translate filenames? E.g. /contact.php forwards to /pt/contato.php for a Portuguese speaker?


_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to