To upgrade my website , I just downloaded all the files through FTP. And I am facing the issue that I am being redirected to live site every time.
So, I was not able to work on local site. For this I searched on net and found the below possible solutions and all of them are working fine..
1. in the top of the file “wp-config.php”, we can add ‘WP_HOME’ and ‘WP_SITEURL’ vars to
set the url to point to new location. if these are not available you can add them too.
define( 'WP_HOME', 'http://localhost/tutorialmines.net' ); define( 'WP_SITEURL', 'http://localhost/tutorialmines.net' );
2. In “wp_options” table set “siteurl” and “home” fields value by using mysql query.
select * from wp_options where option_name like '%siteurl%' ; select * from wp_options where option_name like '%home%' ;
3. To set urls in your wordpress application just go to Settings tab at left hand side and go to general tab and set site address(url) and wordpress address (url) just like below.
Scroll down the page and click on the Save Changes button.
A you press the save button . The changes get reflected on the database as well and we can browse our site on local URL or any new changed URL as well.
When it comes to children, there’s one universal truth: the right toy can spark imagination, build skills, and make memories…
In today’s digital age, where screens and gadgets dominate our children’s lives, there’s something heartwarming about a well-loved plush toy…
In a world dominated by screens and fast-paced routines, it’s easy to forget the simple magic of a toy in…
In the heart of Delhi’s vibrant streets lies a world where imagination meets innovation — the magical universe of toys.…
When was the last time a toy truly amazed you—not just as a product, but as a thoughtful tool for…
In the digital age, the way we experience childhood has changed, but the essence remains the same—imagination, exploration, and joy.…