-2

Does anybody have a proper htaccess for running laravel from a desired folder? For example on windows, if I have a laravel installation in: "C:\xampp\htdocs\www\larave\app2\public" how htaccess should look like in "C:\xampp\htdocs\" to url "localhost/" show laravel app in "C:\xampp\htdocs\www\larave\app2\public"?

fico7489
  • 7,931
  • 7
  • 55
  • 89

1 Answers1

2

What you need is a document root change in xampp configuration. This question discusses the topic of changing the document root in xampp. After changing this, the webapp you working with should appear on localhost as desired.

Secondly, I would suggest to use VirtualHost in apache and update local hosts file to work with multisites in development machine. This article discusses the same in detail

Community
  • 1
  • 1
usman zafar
  • 220
  • 2
  • 9
  • thanks for comment it helps, but I was looking for htaccess solution, not changing document root in xampp I know for this. I don't know why I get thumbs down ;) – fico7489 Oct 19 '15 at 10:18
  • @fico7489 perhaps because htaccess is a really bad way to do it given the standard virtualhost option. Also the English isn't so clear. – Menasheh Dec 22 '16 at 04:00