title: Disable URL Rewrite for subdomain
body: <p>I'm using Apache web server ( use <code>.htaccess</code> to handle URL Rewrite ).</p>
  
  <p>the main domain ( e.g. <code>example.com</code> ) is managed by URL Rewrite generated by WordPress. The URL Rewrite applies for whole domain , including sub-domains.</p>
  
  <p>I have a new subdomain called <code>http://static.example.com</code>, which acts a  URL forward to another external URL, e.g. forward to <code>http://www.google.com</code>. That's :</p>
  
  <p><a href="http://static.example.com/style.css" rel="nofollow">http://static.example.com/style.css</a> will forward to <a href="http://www.google.com/css/some_path/style.css" rel="nofollow">http://www.google.com/css/some_path/style.css</a></p>
  
  <p>However, the URL Rewrite blocks it, and reports file not found, as it cannot find the <code>/css/style.css</code> in local server. My question is: How to disable URL Rewrite for subdomain ?</p>
  
  <p>The current <code>.htaccess</code> is as follow:</p>
  
  <pre><code>RewriteEngine on
  
  AddType application/rss+xml rss
  AddType application/x-java-jnlp-file jnlp
  Options All -Indexes
  
  RewriteCond %{HTTP_HOST} ^www.example.com$
  RewriteRule ^/?$ "http\:\/\/example\.com" [R=301,L]
  
  # BEGIN W3TC Browser Cache
  &lt;IfModule mod_deflate.c&gt;
      &lt;IfModule mod_headers.c&gt;
          Header append Vary User-Agent env=!dont-vary
      &lt;/IfModule&gt;
          AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
      &lt;IfModule mod_mime.c&gt;
          # DEFLATE by extension
          AddOutputFilter DEFLATE js css htm html xml
      &lt;/IfModule&gt;
  &lt;/IfModule&gt;
  &lt;FilesMatch "\.(css|htc|js|js2|js3|js4|CSS|HTC|JS|JS2|JS3|JS4)$"&gt;
      &lt;IfModule mod_headers.c&gt;
           Header set X-Powered-By "W3 Total Cache/0.9.2.11"
      &lt;/IfModule&gt;
  &lt;/FilesMatch&gt;
  &lt;FilesMatch "\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|XML)$"&gt;
      &lt;IfModule mod_headers.c&gt;
           Header set X-Powered-By "W3 Total Cache/0.9.2.11"
      &lt;/IfModule&gt;
  &lt;/FilesMatch&gt;
  &lt;FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EOT|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|JSON|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|MPP|OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SVG|SVGZ|SWF|TAR|TIF|TIFF|TTF|TTC|WAV|WMA|WRI|XLA|XLS|XLSX|XLT|XLW|ZIP)$"&gt;
      &lt;IfModule mod_headers.c&gt;
           Header set X-Powered-By "W3 Total Cache/0.9.2.11"
      &lt;/IfModule&gt;
  &lt;/FilesMatch&gt;
  # END W3TC Browser Cache
  # 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
  
  RewriteCond %{HTTP_HOST} ^static\.example\.com$ [OR]
  RewriteCond %{HTTP_HOST} ^www\.static\.example\.com$
  RewriteRule ^/?$ "https\:\/\/google\.com\/css\/some_path\/" [R=301,L]
  </code></pre>
  
  <p><strong>Note:</strong> note that the forwarding is actually included above.</p>
  
  <p><em>p.s. all URLs are fake.</em></p>