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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Want to change URL (multilingual site)


Go to End


4 Posts   1550 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:

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

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

-Chris