• So I built a new website for my service organization. I used a dev.* on my domain to build it, everyone liked it, it got approved and everything.

    I took all the dev.* wp files of the install and moved to the permanent, exported the database and did a full search and replace on new domain to replace old domain. Imported it.

    For some reason it is redirecting to the dev.* domain and I can’t figure out where…I’ve searched htaccess, and I’ve search the codebase and just can’t find.

    What am I missing? Any tips?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please provide a link to a page on your site where we can see this. Thanks.

    Also, use the plugin “better search replace” and search your database for dev.example.com. Look, too, in your CSS files if you’ve modified them or added any custom CSS.

    Thread Starter dbmasters

    (@dbmasters)

    Well, I really can’t leave it live on the domain to show the problem…so that’ll be a problem. custom CSS is clean of references, I never changed any code CSS.

    Hmmmm, this is frustrating, I’ve run 40-50 WP sites and never had this problem before.

    Bah

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    When you changed the content of the DB, how did you do it? Search/replace with a text editor on an exported .sql file can break things.

    Thread Starter dbmasters

    (@dbmasters)

    I did do a test editor search and replace, so I found a plugin to do it, used phpMySQL for some it missed…but, turns out I stupidly forgot:

    define(‘WP_HOME’,’https://domain.org’);
    define(‘WP_SITEURL’,’https://domain.org’);

    Adding that fixed it right up…

    Weirdly though, I had to ADD those, not edit them, so how did it work in the first place? Any thoughts on this?

    Thanks for your time, appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t find a redirect back to the dev domain’ is closed to new replies.