I have download the code and export the database from server and setup the site on my localhost also I have been changed the home and site URL in wp_options table I am able to login at wp-admin
but when I am clicking on the home page it redirect me to live site.
If anyone know the issue please help me.
Thanks in Advance.
You need to replace database URL and directory path while downloading database from 1 provider to other. In your case, I suspect that you have downloaded database directly, without changing URL and directory path.
You need to re-download database. You can simply use "WP Migrate DB" plugin for this. You can find it here
Let me know if you need further assistance...
open your wp-config.php file and add this
define( 'WP_SITEURL', 'http://localhost/your_wordpress_folder' );
define( 'WP_HOME', 'http://localhost/your_wordpress_folder' );
then save the file from admin set the permalinks defaults and resave it with %postname%
if not work recreate your htaccess file
Hope it will work for you
Thanks
I had this issue too. I changed the permalink type and reset MAMP. Before resetting MAMP, I changed the web server type from Nginx to Apache in MAMP.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With