title: Wordpress: 403 error after changing domain name
body: <p>I have a wordpress instance (Version 3.5.1) installed on a third party webhoster (www.hoststar.ch). The installation on the server is in a subdirectory /test/wordpress. When I installed the wordpress instance, I gave the URL <a href="http://test.example.com" rel="nofollow">http://test.example.com</a> as URL. Now I want to change the URL into <a href="http://www.newexample.com" rel="nofollow">http://www.newexample.com</a>. I set the new URL to point to the same subdirectory on the server as the old URL. But when I open the new URL, the server gives me an 403 error, telling me:</p>
  
  <blockquote>
    <p>"You don't have permission to access / on this server."</p>
  </blockquote>
  
  <p>I figured out that when I change the entry "RewriteEngine On" to "RewriteEngine Off" in the .htaccess file (the one of the wordpress subdirectory, not the one in the root directory), it works with the new URL. However, the pretty permalinks do not work anymore, as the RewriteEngine is switched off.</p>
  
  <p>Does somebody have an idea why I cannot access the wordpress instance with the new URL when the RewriteEngine is set to On?</p>
  
  <p>Here's my .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;
  </code></pre>
  
  <p>Thanks for your help!</p>