Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Want to change URL (multilingual site)


Reply


4 Posts   1182 Views

Avatar
leafchild

Community Member, 41 Posts

16 June 2011 at 11:50am

I created website that have 3 languages: English, Japanese, Chinese

I want to show URL like this
http://mydomain.com/en/contact-us
http://mydomain.com/jp/contact-us

http://mydomain.com/en/showcase/product
http://mydomain.com/jp/showcase/product

but currently URL is set to like this:
http://mydomain.com/en/contact-us
http://mydomain.com/contact-us-ja-JP

http://mydomain.com/showcase/product
http://mydomain.com/showcase-ja-JP/product-ja-JP

If I try to edit at Admin/Metadeta, to fix URL,
after I enter "jp/contact-us" and after I save then
"/" will be replaced with "-" so it will be like this
"jp-contact-us"

What is the best way to show URL the way I want to show?

Is Mod_rewrite work??

Thanks

Avatar
leafchild

Community Member, 41 Posts

22 June 2011 at 7:36am

Anybody have any ideal about this??

Do you think changing URL from

http://mydomain.com/contact-us-ja-JP
->
http://mydomain.com/jp/contact-us

is important for SEO?

or it's ok to keep just as what SilverStripe provides?
(a lot of site say SilverStripe give us SEO friendly URL so I think it's ok but I have to convince marketing people just leave as it is)

Not really sure how much important to have this structure URL

../jp/.../....
../zh/...
../en/.../...

instead of SilverStripe style URL structure.

Thanks

Avatar
leafchild

Community Member, 41 Posts

28 June 2011 at 5:07am

so I found this page: http://doc.silverstripe.org/old/recipes:pretty_i18n_urls

Does any one tried with V.2.4.5??

Avatar
Chris_Bryer

Community Member, 35 Posts

28 June 2011 at 1:42pm

here's another solution:

[url]http://www.silverstripe.org/general-questions/show/13616#post304868[/url]

it's not subdirectory based, but it will handle sub-domain and tld's

-Chris