Combine Laravel and WordPress via htaccess

I have a standard Larvael folder structure, and I want to have a WordPress blog in /blog folder.
I am on a shared hosing, so I am using this htaccess at root of my domain to rewrite all requests to /public:

RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]

Then I thought I’d put blog in the root and just not do the rewriting if the route starts with blog:

Read More
RewriteCond %{REQUEST_URI} !^public
RewriteCond %{REQUEST_URI} !^blog
RewriteRule ^(.*)$ public/$1 [L]

But that didn’t work.
How can I achieve this?

Thanks,
Petar

Related posts

Leave a Reply

1 comment

  1. And with that:

    RewriteCond %{REQUEST_URI} !^/public
    RewriteCond %{REQUEST_URI} !^/blog
    RewriteRule ^(.*)$ public/$1 [L]
    

    Because URI begin with /