Removing /public from URL

There are couple of ways for doing this:

  1. htaccess method:
    • move the htaccess file from public folder to the root folder
    • rename server.php to index.php
    • that’s it really!
    • The biggest flaw using this way is that .env file becomes accessible to web.
  2. Using Content Moving:
  3. Changing the document root on the server

Reference:

http://tutsnare.com/remove-public-from-url-laravel/

Find this out:

https://laracasts.com/discuss/channels/laravel/removing-public-from-url-where-does-laravel-get-the-base-url-from?page=1

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s