Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Mattiman's avatar

Valet link subdirectory to subdomain

So having dumped MAMP pro after using it for many years but having many problems, I installed Valet today. After resolving a few problems, I got it working. However there's one thing I can't fix.

I have my ~/Sites folder 'parked' in Valet so every directory inside ~/Sites/mywebsiteproject is accessible by visiting http://mywebsiteproject.test That's working fine.

I also have a Laravel project in ~/Sites/laravelproject/ where the public directory is ~/Sites/laravelproject/DEFAULT/ so I linked that directory to laravelproject.test

However there's a subdomain project which needs to be linked to a subdirectory. So I want ~/Sites/laravelproject/map/ linked to http://map. laravelproject.test

How do I do that? I tried every Valet link command I could think of/find answers online.

Hope my question is clear!

0 likes
0 replies

Please or to participate in this conversation.