BaseURL problem.. i think.. |
[eluser]Unknown[/eluser]
hi all.. im using wamp server to set up a web server on my system.. my code igniter application is located at C:\wamp\www\MyApplication\.. i use the virtual hosts feature in apache to map the URL http://test.myapplication.com/ to this folder.. in my code, when i want to link to a controller, i use paths in the form of /controller/method.. these were working perfectly.. when loaded in browser, the links translate to http://test.myapplication.com/controller/method.. this is all very good.. however, when i try accessing my system from the internet, i cannot use the virtual host set up in apache.. i have to use a URL like http://192.168.0.1/myapplication.. the problem is that the controller links translate to http://192.168.0.1/controller/method instead of http://192.168.0.1/myapplication/controller/method.. this obviously fails and gives me an http not found error.. is there a better way to make it work besides the following ways: 1. prepending all links on my pages with /myapplication/? 2. dumping the contents of C:\wamp\www\myapplication into C:\wamp\www\ (i have multiple applications, codeigniter and other, in the www folder so thats gonna mess a lot of things).. i hope i was able to communicate what the issue im facing is.. please help me.. thanks.. asim
[eluser]Bart v B[/eluser]
use a modRewrite with .htaccess ? Code: RewriteEngine On |
Welcome Guest, Not a member yet? Register Sign In |