PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, March 7, 2022

[FIXED] Wordpress + MAMP: always redirected to live site

 March 07, 2022     mamp, wordpress     No comments   

Issue

When I install a backup of my Wordpress site on my local MAMP server, so i can work on it and test new features etc, and I visit ANY link or do anything (including logging in) it always throws me to the actual live website.

For example, if the local address for the site is "localhost/xyz" and I type that in, it takes me to it but anything after that throws me to the actual live site.

So on "localhost/xyz", if I click on log-in or any page etc, I end up at http://www.xyz.com

This is being VERY problematic because I can't test any page or work on any page locally.

How can i go about fixing this?


Solution

If you go into your database (on MAMP) via phpmyadmin, and check the options table, make sure that the lines for siteurl and home are set to http://localhost/ and not the live site url.



Answered By - gscharles
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing