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

BitValentine's avatar

Wordpress Front-end & Laravel in a subfolder issues

I'm new here :) So happy to join the community.

I've been working for days trying to get this working. This is what I'm trying to achieve.

Frontend as Wordpress (Roots Bedrock) i.e. https://goso.io

Then using my Laravel app for customers to login i.e https://goso.io/account

I'm also using Laravel Forge with Digital Oceans servers.

Methods Tried

--Symbolic Links :-- Works in a folder, but whenever I create a new route called /test it fails to work.

--Index.php :-- Moving the index.php file in /public to the desired folder, same issue as above.

If anyone could suggest anything or a tutorial I would be grateful.

0 likes
2 replies
BitValentine's avatar

I've looked into .htaccess too. No joy!

Alias /account/ /home/vagrant/code/goso/laravel/public

<Directory /home/vagrant/code/goso/laravel/public> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.* - [L]

// Also I tried this https://laravel-news.com/subfolder-install

Same problems with web routes

JohnBeales's avatar

More detail would help. What happens, and what’s the problem exactly?

For example, if you go to goso.io/some-wp-url does it work as expected?

How about goso.io/account/some-laravel-route? If not, what happens?

Please or to participate in this conversation.