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 9057387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T14:26:32+00:00 2026-06-16T14:26:32+00:00

I have a site; I need to develop to support multiple languages, for example

  • 0

I have a site; I need to develop to support multiple languages, for example en, tr, ar, sp, etc.

But the problem is , what is the best way to do it with Codeigniter?

I have a controller ( SITE ). I have a lot of functions LIKE ( hotel , city , page , blog )

I want to before this method add a segment ( language ). This is old links

http://example.com/hotel/mariot
http://example.com/hotel/hilton
http://example.com/city/london
http://example.com/city/paris
...
..

and I want the links to be like this

http://example.com/en/hotel/mariot
http://example.com/ar/hotel/mariot
http://example.com/sp/hotel/mariot
http://example.com/tr/hotel/mariot
http://example.com/en/city/london
http://example.com/ar/city/paris
....
..

sometimes thinking every language have a controller but it is possible…

What is the best way to change all links to support the languages?

I’m sorry If my question is not clear, this is my English.

  • 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-16T14:26:34+00:00Added an answer on June 16, 2026 at 2:26 pm

    if you want your links to be like this
    http://example.com/en/something

    then you might need to have subdomain or folder in your project called en. but yet this is not the perfect solution.

    what you have to do is to make your text output assigned into variables which takes their values from an xml file. like if you have some text called “your room number is: 0” and this value is hard coded HTML then you should put it in en.xml file under some tag and get it from the xml file which is requested by the user according to the required lang.

    you might can do the previous solution in all languages but you have to consider that Arabic language is RTL language so just consider that in your css. But generally you can use xml files to control the languages.

    hope that is what you needed.

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

Sidebar

Related Questions

I need to develop a site on Drupal 7. I have some content types
I need to create a WP site which will have multiple subjects. Each subject
I have a Drupal 7 site and need to output a small calendar control
I have a site using CF8 and Fusebox 5. Anytime I need to add
I need to check if the images people upload to my site have the
Afternoon All, I have a web site where i need to know who is
I currently have a web site hitting 7 Access DBs that I desperately need
I have a search box on my site and i need to replace all
I have items in a list in a SharePoint 2003 site that I need
I have Solution with web site MyProject. I need publish this web site. In

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.