Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 472 Vote(s) - 3.47 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Laravel 4 removing public from URL

#21
**BEST Approch**: I will not recommend removing public, instead on local computer create a virtual host point to public directory and on remote hosting change public to public_html and point your domain to this directory. Reason, your whole laravel code will be secure because its one level down to your public directory :)

**METHOD 1:**
I just rename server.php to index.php and it works

**METHOD 2:**

Here is my Directory Structure,

/laravel/
... app
... bootstrap
... public
... etc

Follow these easy steps

1. move all **files from public directory to root /laravel/**
2. now, no need of public directory, so optionally you can remove it now
3. now open index.php and make following replacements

> require __DIR__.'/../bootstrap/autoload.php';

to
> require __DIR__.'/bootstrap/autoload.php';

and
> $app = require_once __DIR__.'/../bootstrap/start.php';

to
> $app = require_once __DIR__.'/bootstrap/start.php';

4. now open bootstrap/paths.php and change public directory path:


> 'public' => __DIR__.'/../public',

to


> 'public' => __DIR__.'/..',

and that's it, now try http:// localhost/laravel/
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through