title: Wordpress causing "This webpage has a redirect loop" error remotely
body: <p>I have a Wordpress site that works perfectly well in development (at <code>mysite.dev</code>), however when I deploy it to my remote server (<code>mysite.com</code>) it throws the '<strong>This webpage has a redirect loop</strong>' error.</p>
  
  <p>I can see in the loading bar that the browser is trying www.mysite.com then mysite.com then www.mysite.com again and again, however I'm not sure if this is relavant or not.</p>
  
  <p>If my Wordpress database configuration is incorrect, I get the <strong>Error establishing a database connection</strong> message, however when everything is set correctly it breaks in this re-direct loop thing.</p>
  
  <p>I have changed the field in the database (<code>siteurl</code>) to reflect the remote settings (<code>http://mysite.com/wordpress</code>).</p>
  
  <p>Note: My wordpress files are stored in a folder called <code>wordpress</code> in my root directory except for <code>wp-config.php</code>, <code>index.php</code> and <code>.htaccess</code>.</p>
  
  <p>Any ideas?</p>
  
  <p>.htaccess contents:</p>
  
  <pre><code># 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>
  
  <p>index.php:</p>
  
  <pre><code>&lt;?php
  /**
   * @package WordPress
   */
  define('WP_USE_THEMES', true);
  
  require('./wordpress/wp-blog-header.php');
  ?&gt;
  </code></pre>