title: Wordpress %postname% permalinks break static homepage (301)
body: <p>so I am having this issue for a while now, and I cannot seem to find a fitting solution.</p>
  
  <p>Whenever I enable %postname% permalinks, my static homepage <code>https://example.com/xy</code> stops working and delivers 301 “site is not redirecting properly” errors, while any other posts or pages on the site redirect properly, example <code>https://example.com/xy/about-us</code> works.</p>
  
  <p>If I revert back to plain links, I have no issues.
  Two things that I’ve noticed are, if I add “index.php” at the end of the homepage it will load again, example <code>https://example.com/xy/index.php</code>.</p>
  
  <p>%postname% permalinks also work if I set site url inside a wp-config.php like this</p>
  
  <p><code>define( ‘WP_HOME’, ‘http://example.com/xy’ );</code></p>
  
  <p><code>define( ‘WP_SITEURL’, ‘http://example.com/xy’ );</code></p>
  
  <p>However I am required to keep site url path relative, so this is not a desired fix.</p>
  
  <p>I’ve tried disabling all plugins and changing theme to default to no avail.
  I've enabled AllowOverride for my root directory.
  I have mod rewrite enabled in apache, my .htaccess is generated by WP and looks like this:</p>
  
  <pre><code>RewriteEngine On
  RewriteBase /xy/
  RewriteRule ^index\.php$ – [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /xy/index.php [L]
  &lt;/IfModule&gt;
  </code></pre>