Welcome Guest, Not a member yet? Register   Sign In
multilanguage and URI problem..
#1

[eluser]italoc[/eluser]
i have this problem...

if i write this URI all works great

Code:
http://localhost:8888/sirsa/?en/sirsa/home

but i write this doesn't work

Code:
http://localhost:8888/sirsa/en/sirsa/home

for work need a "?" after the root of the application

there is apache or CI configuration for resolve this problem?

thank you.
#2

[eluser]TheFuzzy0ne[/eluser]
Yes, you need an htaccess file - http://codeigniter.com/wiki/mod_rewrite/
#3

[eluser]italoc[/eluser]
mmm i have a problem, i have the .htaccess same as the .htaccess in the wiki posted before

if i write this URI

Code:
http://sirsa:8888/?it/sirsa/home

works great

if i write this URI

Code:
http://sirsa:8888/it/sirsa/home

works but don't load images and css/javascript file.. if i debug with tamper data i see that browser try to load this

Code:
http://sirsa:8888/it/sirsa/images/page1-title2.gif
http://sirsa:8888/it/sirsa/css/style.css

but the real path of the file is

Code:
http://sirsa:8888/images/page1-title2.gif
http://sirsa:8888/css/style.css

anyone can help me??
#4

[eluser]TheFuzzy0ne[/eluser]
You're using a relative path, and not absolute. You're image tags should look something like this:

Code:
<img src="&lt;?php echo base_url(); ?&gt;path/to/image.gif" alt="" />

# Or this...

<img src="/path/to/image.gif" alt="" />
# Note the leading forward slash, without it, your path is relative to
# the the current page, not the Web root.
#5

[eluser]italoc[/eluser]
works... great..

thank you...




Theme © iAndrew 2016 - Forum software by © MyBB