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

pio.skro@gmail.com's avatar

Two diffrent laravel apps in the same domain (.htaccess)

I have to install two different laravel-apps in the same domain. It is hosting and I am not able to change anything in httpd.conf. Is it possible to manage it by .htaccess? How to do it? What I have to write in my .htaccess file? And where it has to be stored?

└── my-domain
     ├── laravel1
     ├── laravel2
     └── public_html
        ├── [symlink_to]laravel1/public
        ├── [symlink_to]laravel2/public
        └── .htaccess(?)
0 likes
2 replies
martinbean's avatar

Well you’re going to need to write rewrite rules to pass requests to the Laravel application you want. I’m not sure why you would want to do this though, it’s going to be a headache.

pio.skro@gmail.com's avatar

I have tried with rewrite rules but finally I did it that way that all request was redirected to one app only I am newbie with bash so I need help with it.

Please or to participate in this conversation.