CodeIgniter Forums
Using on test server with IP address and username for URL - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Using on test server with IP address and username for URL (/showthread.php?tid=74610)



Using on test server with IP address and username for URL - coolerkid9090 - 10-14-2019

I'm moving my site to a new server. I restored the CPanel backup but I want to test the site before I change the domain to point to the new server. Until I like the domain I would load it usingĀ the IP/username, like: http://192.169.1.100/~myusername

Of course that breaks Codeigniter when I openĀ http://192.169.1.100/~myusername/pagename

How can I get it working with the test server until I'm ready to point the domain over?


RE: Using on test server with IP address and username for URL - jreklund - 10-15-2019

Change your local host file (on your computer) and point your domain to the new servers IP-address.