Welcome Guest, Not a member yet? Register   Sign In
No URI present. Default controller set
#4

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&nbsp; Mysql 5.x PHP 5.x PHP 7.x
Remember: Obfuscation is a bad thing.
Clarity is desirable over Brevity every time.
Reply


Messages In This Thread
RE: No URI present. Default controller set - by twpmarketing - 07-14-2015, 09:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB