Search code examples
wordpress.htaccessmod-rewritepermalinks

WordPress URL htaccess rewrite problems


I'm having an issue after moving to a new server where my WordPress htaccess URL rewrites are redirecting ALL links back to the homepage.

Here is my current htaccess file:

# BEGIN WordPress
<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteBase /
   RewriteRule ^index\.php$ - [L]
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule . /index.php [L]
</IfModule>
# END WordPress

On the old server I used this htaccess file with zero problems - however the new server I have the problem where ANY URL is redirecting to homepage. If I type the "unwritten" URL in (with the query strings) the page comes up fine.


Solution

  • Two ideas:

    1. http://wordpress.org/support/topic/all-permalinks-redirect-to-homepage-1

    Deactivate all plugins an reactivate one by one.

    1. http://wordpress.org/support/topic/blog-posts-redirecting-to-home-page

    Click the save button in the permalinks panel.