preview url - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: preview url (/showthread.php?tid=24588) |
preview url - El Forum - 11-13-2009 [eluser]Unknown[/eluser] Hi, I just hosted my codeigniter site on a server. But my domain is not pointing to the server yet. Meanwhile inorder to view the site via a preview URL like http://123.123.123.123/~username/ what should be done? I changed the base url to http://123.123.123.123/~username/ But my stylesheets, links, images etc do not work. Please advise. Thanks. preview url - El Forum - 11-13-2009 [eluser]web_developer[/eluser] It is hard to figure out problem. But just check controller are working? for example : http://123.123.123.123/~username/<controller_name> print some statement in "index()" and checkout. index() are working? if it is working then configuration is ok. preview url - El Forum - 11-13-2009 [eluser]web_developer[/eluser] and might be your URL is creating problem. http://123.123.123.123/~username/ I think CI is treating ~username as a Controller or directory in that case you have to set condition in routes.php $route['~username'] = "<controller_name>" and then it will work.. (It is better to use with Domain URL) |