title: Rewrite Rule but ignore the first directory part?
body: <p>It took me 2 hours but I can't figure it out and I don't know how to google a solution.</p>
  
  <p>This is my Rewrite-Rule in the .htaccess-file:</p>
  
  <pre><code>RewriteCond %{REQUEST_URI} ^/blog(.*)
  RewriteRule ^(.*) http://localhost:2368/$1 [P]
  </code></pre>
  
  <p>When I call example.com/blog, it should redirect me to my blog. The blog is a ghost-blog running in nodejs (port 2368).</p>
  
  <p>This would work when I use no condition. So I can see the main site of my blog at example.com.</p>
  
  <pre><code>http://example.com/xy =&gt; http://localhost:2368/xy
  </code></pre>
  
  <p>But with the condition and the rule, it seems like this happens:</p>
  
  <pre><code>http://example.com/blog/xy =&gt; http://localhost:2368/blog/xy
  </code></pre>
  
  <p>But I don't want it to redirect to <a href="http://localhost:2368/blog/xy" rel="nofollow noreferrer">http://localhost:2368/blog/xy</a>. It sould redirect to <a href="http://localhost:2368/xy" rel="nofollow noreferrer">http://localhost:2368/xy</a>.</p>
  
  <p>How can I solve this problem?</p>