multilanguage and URI problem.. |
[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.
[eluser]TheFuzzy0ne[/eluser]
Yes, you need an htaccess file - http://codeigniter.com/wiki/mod_rewrite/
[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 but the real path of the file is Code: http://sirsa:8888/images/page1-title2.gif anyone can help me??
[eluser]TheFuzzy0ne[/eluser]
You're using a relative path, and not absolute. You're image tags should look something like this: Code: <img src="<?php echo base_url(); ?>path/to/image.gif" alt="" />
|
Welcome Guest, Not a member yet? Register Sign In |