title: laravel 4 on shared hosting: PAGE NOT FOUND
body: <p>Due to a client issue i have to put a laravel 4 application on shared hosting service.But i followed this process at [laravelio]which includes.</p>
  
  <pre><code>Place the files of the laravel public folder i.e. css, img, js etc; into public_html folder (don't dump public folder instead dump the files and folders in it).
  
  Put all the remaining folders &amp; files into another folder, say 'laravelcore' and place the laravelcore folder in the root (/home5/username/)
  
  Open index.php in the public_html folder and replace the following lines as mentioned
  
  require DIR.'/../bootstrap/autoload.php';
  
  require __DIR__.'/../laravelcore/bootstrap/autoload.php';
  
  $app = require_once DIR.'/../bootstrap/start.php';
  
  $app = require_once __DIR__.'/../laravelcore/bootstrap/start.php';
  
  Open paths.php file in laravelcore/bootstrap and replace the following line
  
  'public' =&gt; DIR.'/../public',
  
  'public' =&gt; __DIR__.'/../../public_html',
  </code></pre>
  
  <p>which is suppose to work but when i visit the url i get this : The requested URL /login was not found on this server.please what may be the problem as i dont get it.may be its about configuring the .htacces file.</p>
  
  <p>Any help would be appriciated.Thanks
  website is at :benin1897.com</p>
  
  <p>i just discovered that there is no .htaccess file in th public_html folder.could that be the problem...</p>
  
  <p>here is my file tree</p>
  
  <p>(/home/benincom)
       etc
       logs
       mail
       oysg
          app
          bootstrap
          vendor
       publicftp
       public_html
          css
          js
          error_log
          readme
          pakage.json
          robots.txt
       tmp</p>
  
  <p>NOW AM LOGGED ON BUT LARAVEL THROWS ME ERROR </p>
  
  <p><em>/ /</em> |-------------------------------------------------------------------------- | Register The Auto Loader |-------------------------------------------------------------------------- | | Composer provides a convenient, automatically generated class loader | for our application. We just need to utilize it! We'll require it | into the script here so that we do not have to worry about the | loading of any our classes "manually". Feels great to relax. | <em>/ require <strong>DIR</strong>.'/../oysg/bootstrap/autoload.php'; /</em> |-------------------------------------------------------------------------- | Turn On The Lights |-------------------------------------------------------------------------- | | We need to illuminate PHP development, so let's turn on the lights. | This bootstraps the framework and gets it ready for use, then it | will load up this application so that we can run it and send | the responses back to the browser and delight these users. | <em>/ $app = require_once <strong>DIR</strong>.'/../oysg/bootstrap/start.php'; /</em> |-------------------------------------------------------------------------- | Run The Application |-------------------------------------------------------------------------- | | Once we have the application, we can simply call the run method, | which will execute the request and send the response back to | the client's browser allowing them to enjoy the creative | and wonderful application we have whipped up for them. | */ $app->run();</p>