404 error - All pages gives 404 except homepage and wp-login

I have setup a local wordpress environment by downloading the files and database from live site. Then I changed the site

I have setup a local wordpress environment by downloading the files and database from live site. Then I changed the site URL in wp-options table and changed user password for login.

The homepage and wp-login page works fine but all the other posts gives 404 in frontend and after login in backend wordpress, it redirects to /my-account giving a 404 error page.

I checked the .ht-access file and it has this

# 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
# BEGIN LiteSpeed
<IfModule Litespeed>
SetEnv noabort 1
</IfModule>
# END LiteSpeed

I think I need to save the permalinks in settings but the dashboard does not open for that. What could be the issue?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744752532a4591683.html

相关推荐

  • 404 error - All pages gives 404 except homepage and wp-login

    I have setup a local wordpress environment by downloading the files and database from live site. Then I changed the site

    3天前
    50

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信