No URI present. Default controller set |
The value of $_SERVER['SERVER_NAME'] is set in your server config file. Check what the actual setting is.
If it is blank or cannot be resolved, the server will make some "guesses" and try to return something to the request. You may need to put the terminating slash on the string. You can also try to echo the value to screen, but I can't guarantee that the code will execute and push the value to the output stream. <?php echo $_SERVER['SERVER_NAME'[; ?> Since you are running this under a different server, the server config file probably does not match that of the original server. If you have access, check the server config file on the original. Which server is being used? Apache? If so, are you using a virtual host file(s)? They may override your server config file setting. Again check the original server virtual host files. As CroNIX noted, check your Hosts file, usually as /etc/hosts
CI 3.1 Kubuntu 19.04 Apache 5.x Mysql 5.x PHP 5.x PHP 7.x
Remember: Obfuscation is a bad thing. Clarity is desirable over Brevity every time. |
Messages In This Thread |
No URI present. Default controller set - by drhowarddrfine - 07-14-2015, 02:58 PM
RE: No URI present. Default controller set - by CroNiX - 07-14-2015, 05:20 PM
RE: No URI present. Default controller set - by drhowarddrfine - 07-14-2015, 05:54 PM
RE: No URI present. Default controller set - by twpmarketing - 07-14-2015, 09:57 PM
RE: No URI present. Default controller set - by drhowarddrfine - 07-15-2015, 04:23 AM
RE: No URI present. Default controller set - by twpmarketing - 07-15-2015, 04:47 AM
RE: No URI present. Default controller set - by drhowarddrfine - 07-15-2015, 07:24 AM
RE: No URI present. Default controller set - by mwhitney - 07-15-2015, 07:55 AM
RE: No URI present. Default controller set - by drhowarddrfine - 07-15-2015, 08:47 AM
RE: No URI present. Default controller set - by mwhitney - 07-15-2015, 10:08 AM
RE: No URI present. Default controller set - by twpmarketing - 07-15-2015, 03:36 PM
|