title: htaccess rewrite laravel routes to lv.php and wordpress route to index.php
body: <p>I have configured wordpress site with laravel.</p>
  <p>For configuration:
  In <code>public</code> folder, I have created <code>wp</code> folder and kept all the wordpress files in it. I have renamed laravel <code>index.php</code> file to <code>lv.php</code> and kept the wordpress index.php file in public folder.</p>
  <p>Now i want to route every wordpress routes from index.php and every laravel route from lv.php.</p>
  <p>I want to run front-end site pages using wordpress like home page, feature and benefits.</p>
  <p>I have used following htaccess file. It is rewriting some routes to laravel index file. I want to reverse it.</p>
  <p>Can anyone help me about it.
  Example URLS:
  Wordpress:</p>
  <p><a href="https://example.com/" rel="nofollow noreferrer">https://example.com/</a></p>
  <p><a href="https://example.com/features" rel="nofollow noreferrer">https://example.com/features</a></p>
  <p><a href="https://example.com/benefits" rel="nofollow noreferrer">https://example.com/benefits</a></p>
  <p><a href="https://example.com/package" rel="nofollow noreferrer">https://example.com/package</a></p>
  <p>Laravel:</p>
  <p><a href="https://example.com/packages/plan/2" rel="nofollow noreferrer">https://example.com/packages/plan/2</a></p>
  <p><a href="https://example.com/admin" rel="nofollow noreferrer">https://example.com/admin</a></p>
  <p><a href="https://example.com/login" rel="nofollow noreferrer">https://example.com/login</a></p>
  <p><a href="https://example.com/client" rel="nofollow noreferrer">https://example.com/client</a></p>
  <pre><code>
  # BEGIN WordPress
  # The directives (lines) between &quot;BEGIN WordPress&quot; and &quot;END WordPress&quot; are
  # dynamically generated, and should only be modified via WordPress filters.
  # Any changes to the directives between these markers will be overwritten.
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteRule ^(packages/plan|login|logout|admin|signin)(|\/) /lv.php [L]
  RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  
  # END WordPress`
  </code></pre>