I have a <strong>Laravel</strong> project in my <strong>public_html</strong> folder. The domain is for example <strong>domain.com</strong> My .htaccess file (in public_html folder) is like this:
There are the following routes:
<ul>
<li>api/licenseplate</li>
<li>api/calendar</li>
<li>auth/login</li>
<li>admin/settings</li>
<li>admin/appointments</li>
<li>appointment</li>
<li>...</li>
</ul>
So an example of a URL is <strong><a href="http://domain.com/appointment">http://domain.com/appointment</a></strong>.
Now I would like to have a wordpress website on domain.com. So when you go to domain.com you see the wordpress website. But I also want to have the urls like /appointment of my laravel project.
What's the easiest and cleanest way to do this?
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
There are the following routes:
<ul>
<li>api/licenseplate</li>
<li>api/calendar</li>
<li>auth/login</li>
<li>admin/settings</li>
<li>admin/appointments</li>
<li>appointment</li>
<li>...</li>
</ul>
So an example of a URL is <strong><a href="http://domain.com/appointment">http://domain.com/appointment</a></strong>.
Now I would like to have a wordpress website on domain.com. So when you go to domain.com you see the wordpress website. But I also want to have the urls like /appointment of my laravel project.
What's the easiest and cleanest way to do this?