Jump to content

Display language based on URL


ServWise.com

Recommended Posts

I am planning to buy v4 of WHMCS when it comes out. One thing I would like is to be able to Rewrite urls on the client side pages so that visitors browsing domain.com/en/ only see english and visitors browsing domain.com/it/ only see italian.

 

I note that in the demo language seems to be set using a session cookie, this is really not good for SEO at all and this way search engines will only ever index the default language and never get to index any of the italian content.

 

By any chance is there a template value I can set to overide the session value so I can then do a test for /it/ in the URL and force the appropriate language?

 

If not this would be a really good thing to have.

Link to comment
Share on other sites

Okay I think I have solved this issue somewhat.

 

Putting ?language=Italian in the URL forces the language (Tested even for a Search Engine Spider) and I can use that in the rewriting system to output the right language based on url. (I just hope it works for all pages in WHMCS). :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated