Alternate language versions of my website don't load when using a free hosting provider

StackOverflow https://stackoverflow.com/questions/20351862

  •  07-08-2022
  •  | 
  •  

Question

I've got my site (made with codeigniter) setup so that it loads alternate language versions of the pages when I put the language extension in the url like so:

domain/contact

domain/es/contact

The first one loads the default language version, and the one other should load the Spanish version.

It works just fine when I'm trying it on localhost, but when I try uploading it on a free hosting (hostinger, not the final hosting I'm going to use) alternate language versions don't load (404 error).

What could possibly be the problem that it works fine on localhost but not online?

I've literally just jumped in on this project so I can't provide more info right now (as in, I don't know what info should I provide), but if you tell me what you need to know I can look it up in a moment.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top