I know that there is already a similar question like this. But I have already done all these suggested solution and nothing works for me.
If there are caching plugins installed like W3 total cache. Then purge cache first. Or may be disable them for time being
- I have already disabled any possible plugin that using cache or redirection ]
Perform Search and Replace in the database for Old Site URL. You can Use this Plugin .
- I opened sql file and perform search and replace for the live url into my local url ]
Reset Permalinks ( Dashboard >> Settings >> Permalinks ).
- I used wp cli to perform permalinks reset ]
Last but not the least. Clear your browser Cache and History
- Always clearing my browser and even using incognito ]
When I deleted all the existing tables, wordpress asking me to setup new wordpress but when I put the tables back, still redirecting me to the live site. Any suggestion?