开发者

WordPress URL htaccess rewrite problems

开发者 https://www.devze.com 2023-03-24 16:13 出处:网络
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.

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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消