title: laravel and wordpress on the same domain(laravel in subfolder)
body: <p>I i have wordpress and laravel app, that should communicate by using AJAX- so they must be on the same domain.</p>
  
  <p>wordpress site should be on the main domain - MYdomain.com.
  and my laravel app to be on MYdomain.com/panel .</p>
  
  <p>wordpress .htaccess :</p>
  
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteCond ! ^panel
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  # END WordPress
  </code></pre>
  
  <p>laravel htaccess(mydomain.com/panel)</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteCond ^panel
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L]
  &lt;/IfModule&gt;  
  </code></pre>
  
  <p>i get Internal Server Error
  and the log from apache2 folder is:</p>
  
  <pre><code>[Thu Mar 12 15:31:07.596263 2015] [core:alert] [pid 1172] [client     xxx.xxx.xxx.xxx:52628] /var/www/panel/.htaccess: &lt;/IfModule&gt; without matching &lt;IfModule&gt; section
  </code></pre>
  
  <p>how to solve it?</p>
  
  <p>Thanks!!</p>