• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
http://localhost/index.php

#1
I use htaccess to change url from http://localhost/public/ to http://localhost/ but when using index.php http://localhost/index.php, I got an error:

Controller App\Controllers\Index.php not found, but when I run http://localhost/public/index.php I got no error

Please help...
Reply

#2
You have to do couple of steps to remove the public text from the URL

#1 Copy "index.php" and ".htaccess" files from the public folder and the paste on the root directory (eg. http://localhost)
#2 After pasting both files to the root folder, open the index.php from the root directory and edit the following line as shown below

$pathsPath = FCPATH . '../app/Config/Paths.php';
To
$pathsPath = FCPATH . 'app/Config/Paths.php';

Try this, It will work
Reply

#3
It works, thnk you...
Reply

#4
I am glad that it worked Smile
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.