title: My htaccess RewriteRule works on localhost/mysite but not at mysite.com on a 1&1 shared host
body: <h1>Solved:</h1>
  <p><strong>unfortunately, the solution is not a satisfying one.  This morning, when trying @Wige's Suggestion, I found, to my suprise, that the Expected values WERE infact sent to the page as a <code>GET</code> query.  Apparently, 1&amp;1 (who I know have been making changes to their environment this last couple weeks), did something behind the scenes which magically fixed my problem, and now all of my previously unworking code <em>is</em> working as originally expected.</strong></p>
  <hr />
  <p><strong>New info</strong>: The <em>Apache</em> version of the production server is <strong><code>1.3.34</code></strong> vs <strong><code>2.2.21</code></strong> on my <em>localhost</em>.</p>
  <p><strong>I'm having trouble figuring out why my RewriteRule is not working properly in production.</strong></p>
  <blockquote>
  <p><code>RewriteRule ^page/pretty-url/(.*)$ page.php?query=$1 [L]</code></p>
  </blockquote>
  <p>In my local testing environment (<code>localhost/mysite/page/pretty-url/{...}</code>) it works fine, but on <code>mysite.com/page/pretty-url/{...}</code> it doesn't work properly.  It loads <code>page.php</code> as expected but apparently the <code>?query=$1</code> piece is ignored (<code>$_GET</code> is empty)</p>
  <p>I imagine that the problem is somehow related to the server configuration.  I'm on a 1&amp;1 shared hosting account with no httpd.conf access.</p>
  <hr />
  <p><strong>What that <code>RewriteRule</code> does (or <em>should</em> do):</strong></p>
  <p>I want urls like</p>
  <blockquote>
  <p>*<code>example.com/page/pretty-url/{{info_for_dynamic_content}}</code></p>
  </blockquote>
  <p>to be rewritten to</p>
  <blockquote>
  <p>*<code>/page.php?query={{info_for_dynamic_content}}</code></p>
  </blockquote>
  <p>So I can access <strong><code>info_for_dynamic_content</code></strong></p>
  <p>within <code>php</code> as <code>$_GET['query']</code></p>
  <hr />
  <p><strong>The full .htaccess file for reference:</strong></p>
  <pre><code>AddHandler x-mapp-php6 .php
  
  DirectoryIndex index.php
  ErrorDocument 404 /index.php 
  
  Options +FollowSymLinks
  
  # per @Jacques Chester's suggestion
  Options -MultiViews
  
  RewriteEngine on
  RewriteBase /
  
  # the rule in question
  RewriteRule ^page/pretty-url/(.*)$ page.php?query=$1 [L]
  
  RewriteCond %{REQUEST_FILENAME}\.php -f 
  RewriteRule ^(.*)$ $1.php
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME}\.php !-f 
  RewriteRule (.*) /index.php [L]
  </code></pre>