Welcome Guest, Not a member yet? Register   Sign In
The requested URL was not found on this server.
#6

Try this:
# https://forum.codeigniter.com/thread-74649.html
# File: index.php
if( TRUE || DEFINED('AUTOMATIC_URL_DETECTION') ) :
$tmp = (isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS'])
&&
('on' == $_SERVER['HTTPS'])
? "https://"
: "http://") .$_SERVER['HTTP_HOST']
;
$tmp .= str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']);
define('BASEURL', $tmp);
endif;

# file: Config/App.php -> public $baseURL = BASEURL;
Reply


Messages In This Thread
RE: The requested URL was not found on this server. - by John_Betong - 11-20-2019, 10:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB