ayoubelmoudni's avatar

How to run site with "http://localhost/example' instead of "http://example.test" while using Laravel Herd

I have a project that needs to be run as "http://localhost/example" and not "http://example.test" in my local, am using Herd and i like it, is there any way to do this?

0 likes
4 replies
tykus's avatar

Don’t know that this will be possible with Herd since a TLD will be expected.

Instead you will need to configure a web server to serve that application separately.

Can I ask why it must be served at that URL?

1 like
amitsolanki24_'s avatar

You can do this by creating virtual host from your Apache server

1 like

Please or to participate in this conversation.