Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8683523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:04:04+00:00 2026-06-12T22:04:04+00:00

I am seeing different URLs being generated by Liferay 6.1 GA2 on different machines

  • 0

I am seeing different URLs being generated by Liferay 6.1 GA2 on different machines even when I enter the following same URL in the browser:

http://my.ip.0.202:8080/

Machine-1’s browser generates:

http://my.ip.0.202:8080/en_GB/web/guest/home

Machine-2’s browser generates:

http://my.ip.0.202:8080/web/guest/home

The configurations on both the machines like language settings, local settings, browser settings, control panel settings seems to be same.

Can anybody tell me the reason for this and how can I force both machine’s browser to render the same URL like http://my.ip.0.202:8080/web/guest/home

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T22:04:06+00:00Added an answer on June 12, 2026 at 10:04 pm

    Have you checked the Liferay Wiki: Configure time zones and locale.

    I have not tried, but according to one of my colleague:

    There might be a localization mismatch with the two machines. Therefore, for one machine “en_GB” automatically gets attached to the URL.

    The problem can be resolved by setting a property in portal-ext.properties

    locale.prepend.friendly.url.style=0 (by default it is set to 1).
    

    The following is directly from the portal.properties:

    #
    # Set this to 0 if the locale is not automatically prepended to a URL. This
    # means that each URL could potentially point to many different languages.
    # For example, the URL http://localhost:8080/web/guest/home could then be
    # viewed by users in many different languages.
    #
    # Set this to 1 if the locale is automatically prepended to a URL when the
    # requested locale is not the default locale. This means that each URL
    # points to just one language. For example, the URL
    # http://localhost:8080/web/guest/home would point to the default language.
    # The URL http://localhost:8080/zh/web/guest/home and
    # http://localhost:8080/zh_CN/web/guest/home would both point to the Chinese
    # language.
    #
    # In cases where the prepended locale is "zh" and not complete locale
    # "zh_CN", then the full locale returned will be based on the order in which
    # the locales appear in the property "locales". If "zh_CN" appears before
    # "zh_TW", then "zh" will be a short hand for "zh_TW".
    #
    # The default language is set in system.properties with the properties
    # "user.country" and "user.language".
    #
    # Set this to 2 if the locale is automatically prepended to every URL. This
    # means that each URL points to just one language.
    #
    # Note that each language requires an entry in the property "locales" and a
    # servlet mapping in web.xml for the I18n Servlet.
    #
    locale.prepend.friendly.url.style=1
    

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've started seeing an AccessViolationException being thrown in my application a several different spots.
I'm seeing different behavior with exceptions being caught or not being caught when I
Does history.go(-1); behaves same in all browsers? I am seeing different behavior across various
I'm seeing two different behaviors based on the CLR that my application is being
I'm seeing the following crash on two different devices (an iphone 3g and an
I have different sites being served up, essentially running off the same code. One
With a very simple Mockito run JUnit test and class I am seeing different
I'm seeing the command 'pull' and wondering how that's different from a 'clone'. Both
Seeing some strange things; help is being solicited. I have a query, like so:
I am learning Parser Combinators in scala and seeing different ways of parsing.I mainly

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.