title: .htaccess works on local server not on main server
body: <p>I have the following .htaccess file working on the local MAMP server fine. However when I upload it to the main server it can't find the news page.</p>
  
  <pre><code>RewriteEngine On
  RewriteBase /
  
  RewriteCond %{THE_REQUEST} \s/+news\.php\?news_id=([^\s&amp;]+) [NC]
  RewriteRule ^ /news/%1? [R=301,L]
  
  RewriteCond %{THE_REQUEST} \s/+Category\.php\?pageNum_RS_Search=([^\s&amp;]+)&amp;totalRows_RS_Search=([^\s&amp;]+)&amp;Category=([^\s&amp;]+) [NC]
  RewriteRule ^ /Compare/%1/%2/%3? [R=301,L]
  
  RewriteCond %{THE_REQUEST} \s/+Category\.php\?Category=([^\s&amp;]+) [NC]
  RewriteRule ^ /Compare/%1? [R=301,L]
  
  RewriteCond %{THE_REQUEST} \s/+product\.php\?id=([^\s&amp;]+) [NC]
  RewriteRule ^ %1? [R=301,L]
  
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^([^/]+)?$ product.php?id=$1 [L,QSA]
  
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^Compare/([^/]+)/?$ Category.php?Category=$1 [L,QSA]
  
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^Compare/([^/]+)/([^/]+)/([^/]+)/?$ Category.php?pageNum_RS_Search=$1&amp;totalRows_RS_Search=$2&amp;Category=$3 [L,QSA]
  
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^news/([^/]+)/?$ news.php?news_id=$1 [L,QSA]
  </code></pre>
  
  <p>The Category and product redirects work fine on the main server however the news doesn't gives a 404 error </p>
  
  <p>other rewrite rules one level higher</p>
  
  <pre><code>rewriteengine on
  rewritecond %{HTTP_HOST} ^www.mysite1.co.uk$ [OR]
  rewritecond %{HTTP_HOST} ^mysite1.co.uk$
  rewriterule ^(.*)$ "http\:\/\/mysite\.co\.uk\/$1" [R=301,L] #5311a623b538f
  rewritecond %{HTTP_HOST} ^www.mysite.co.uk$ [OR]
  rewritecond %{HTTP_HOST} ^mysite.co.uk$
  rewriterule ^Pianoshop\/detailed_page\.php(.*)$ "http\:\/\/mysite\.co\.uk\/product\.php$1" [R=301,L] #5310700a7e477
  rewritecond %{HTTP_HOST} ^www.mysite.co.uk$ [OR]
  rewritecond %{HTTP_HOST} ^mysite.co.uk$
  rewriterule ^Pianoshop\/index_blog\.php(.*)$ "http\:\/\/mysite\.co\.uk\/news\.php$1" [R=301,L] #531
  </code></pre>