title: How can WordPress and YOURLS peacefully coexist at the root level?
body: <p>I want to make a better link shortener service using YOURLS. I've procured a short URL for this: sly.pe.  YOURLS is installed and sly.pe/admin is accessible.</p>
  <p>I'd also like to use WordPress to power most of the consumer facing site, at the URL: sly.pe.  The idea being I want users to register for the site using WordPress and a registration plugin like OneAll social.  Once authenticated they get logged in for both YOURLS and WordPress and are redirected to a URL like sly.pe/home that uses WordPress as the site but YOURLS (sly.pe/admin for that user) is embedded and accessible somehow.</p>
  <p>Both services make .htaccess changes.  If I leave the file as is, I can't seem to have any other WordPress URL other than sly.pe, but YOURLS works fine.  If I comment out some YOURLS code, WordPress can use other directories, but then YOURLS doesn't work.  How can I have both coexist nicely?  Or at least define the WordPress URLs I want and get those working?</p>
  <p>(commenting out the YOURLS code gets WordPress working, but breaks YOURLS):
  <code>.htaccess</code>:</p>
  <pre><code># BEGIN YOURLS
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^.*$ /yourls-loader.php [L]
  &lt;/IfModule&gt;
  # END YOURLS
  
  # BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  
  # END WordPress
  </code></pre>