0

I have laravel setup on xampp located in http://localhost/laravel but to test it I have to go to localhost/laravel/public How do I get rid of the /public ? I would like to be able to access it directly through http://localhost/laravel

3 Answers 3

1

The better way is to use a virtual host and you may check this answer to setup a virtual host. Also you may use this solution but it's not recommended because it tells to move all files and folders from public to your app root folder.

Sign up to request clarification or add additional context in comments.

1 Comment

I found the second option via google but I do not want to move the files to my app folder, the first one should work perfectly. thanks Sheikh!
1
  1. REMOVING .htaccess from root if you have created
  2. take all files and folder from public to root directory
  3. remove ../ from index.php
  4. rename OR remove public folder

Comments

0

Try this article. It explains why .htaccess is not the way to go, and offers two alternatives. http://driesvints.com/blog/laravel-4-on-a-shared-host

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.