title: WordPress Symfony Co-habitation
body: <p>We have a site that runs on Symfony and that was developed by people much more competent that myself. I am however quite competent in WordPress and will be installing a blog on a the site. </p>
  
  <p>Currently, the root of the site runs on Symfony but I would like for WordPress to take over without having to touch the Symphony core. Essentially, I would like to install WordPress in a sub directory of the www directory, say <code>www/wordpress/</code> and have htaccess point to that directory as the root of my domain. BUT, there is one function of my Symfony installation I would like to still have access to, lets call it <code>myfeature</code>. When I go to <code>mydomain.com/myfeature/</code> I would like for htaccess to point to <code>mydomain.com/index.php/myfeature</code> which is run by Symphony. </p>
  
  <p>Here's what my current .htaccess file looks like.</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
    RewriteEngine On
  
    # we skip all files with .something
    RewriteCond %{REQUEST_URI} \..+$
    RewriteCond %{REQUEST_URI} !\.html$
    RewriteCond %{REQUEST_URI} !\.php
    #RewriteCond %{REQUEST_URI} !\.php
    RewriteRule .* - [L]
  
    # we check if the .html version is here (caching)
    RewriteRule ^$ /index.html [QSA]
    RewriteRule ^([^.]+)$ /$1.html [QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
  
    # no, so we redirect to our front web controller
    RewriteRule ^(.*)$ /index.php [QSA,L]
  
    # hidden frontoffice controller
    RewriteRule ^index\.php/(.*)$ /index.php [QSA,L]
    # fo controllers
    RewriteRule ^frontend\.php/(.*)$ /frontend.php [QSA,L]
    RewriteRule ^frontend_dev\.php/(.*)$ /frontend_dev.php [QSA,L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>Thank You</p>