title: All my WordPress pages are redirecting to Xampp's homepage
body: <p>I have a local Xampp stack setup for my WordPress site.  It was first installed on another web server(clients web server) and im doing work on it locally.  So I downloaded all the files and database to my local Xampp server.  So here is what I did to run it locally to begin with:</p>
  
  <ol>
  <li>first I changed the URL in the database table: wp_options for the siteurl.</li>
  <li><p>Then I added these two lines of code to the end of my wp-config:</p>
  
  <pre><code>define('WP_HOME','http://localhost/wpsite');
  define('WP_SITEURL','http://localhost/wpsite');
  </code></pre></li>
  </ol>
  
  <p>Those are the only changes I made to run it locally.  Also, in the root of the WordPress site folder, there is this .htaccess file:</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>I have tried all options:</p>
  
  <ol>
  <li>commenting out all combinations of the wp-config.php file's define lines.</li>
  <li>deleting the .htaccess file with combinations of all the define lines in wp-config.php file.</li>
  </ol>
  
  <p>Also the homepage and admin urls are fine.  It's the permalinks that aren't working. For instance <a href="http://localhost/wp_site/about" rel="nofollow">http://localhost/wp_site/about</a> redirects to Xampp's homepage and if the .htaccess file is deleted it gives Xampp's default 404 error page.</p>