logo
Ask your WordPress questions! Pay money and get answers fast! (more info)

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.

$15
URL upset

After development was completed and rolled out successfully, my client created a subdomain that he preferred the URL and updated the site General Settings. He then promptly called to let me know he had trashed the site.
There is no longer access to the admin account as all URLs to wp-admin are broken. The site itself is still visible, but the links to content appear broken.

He logged into the dashboard and under Settings he selected 'General' and he edited the existing Wordpress Address (URL) and Site Address (Url). Is there any way to reverse this? Rather, is there a better way to update the subdomain with breaking the site?

Given that he has made this change after development and roll-out, what is the best procedure for updating the site to the new subdomain he has chosen? Does this require search and replace? If so, is it just as well to delete the software and reinstall from the development site?

Help. Site went live today and looked beautiful for exactly 3 hrs.
Thanks!

broken admin link:
http://vpaaz.org/tourdecoops/wp-admin/

subdomain:
http://tourdecoops.vpaaz.org/

dev site:
http://dev1.lauradenyes.com/


I am aware of this advice: http://codex.wordpress.org/Moving_WordPress

When Your Domain Name or URLs Change

When your domain name or URLs change - i.e. from http://example.com/blog to http://example.com, or http://example.com to http://newexample.com - there are additional concerns. The files and database can be moved, however references to the old domain name or location will remain in the database, and that can cause issues with links or theme display.

If you do a search and replace on your entire database to change the URLs, you can cause issues with data serialization, due to the fact that some themes and widgets store values with the length of your URL marked. When this changes, things break. To avoid that serialization issue, you have two options:

Only perform a search and replace on the wp_posts table.
Use the Search and Replace for WordPress Databases Script to safely change all instances.


If this is the next best option, where do I find the wp_posts table?

This question has been answered.

little D | 08/02/12 at 5:14pm Edit

Previous versions of this question: 08/02/12 at 5:18pm

(4) Possible Answers Submitted...

See a chronological view of answers?

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

  • avatar
    Last edited:
    08/02/12
    5:19pm
    Basilis Kanonidis says:

    Go to wp-config.php and add the following:
    define('WP_HOME','http://YOURSITE.com');
    define('WP_SITEURL',' http://YOURSITE.com');

    • 08/02/12 5:32pm

      little D says:

      Thank you. That's all it took!

  • avatar
    Last edited:
    08/02/12
    5:25pm
    sabby says:

    Hi,
    when You want to move your wp site to another url then you need to replace the url.

    For Eg:

    http://www.xyz.com is the original url and you need to move the site to the http://www.subdomain.xyz.com
    then you need to replace the url with sub domain in the database file.

    Go to your database , export your db file and open in the notepad replace your url and then delete the current database and export your database again.
    http://wordpress.shadowlantern.com/how-change-wordpress-url-phpmyadmin/
    Hope this will help you.

    and this are some transfer wp plugin
    http://wordpress.org/extend/plugins/wordpress-move/

  • avatar
    Last edited:
    08/02/12
    5:28pm
    Luis Abarca says:

    Add the define in wp-config.php and in your functions.php add

    wp-config.php


    define('WP_HOME','http://vpaaz.org/tourdecoops');
    define('WP_SITEURL','http://vpaaz.org/tourdecoops');


    your_theme/functions.php

    update_option('siteurl','http://vpaaz.org/tourdecoops');
    update_option('home','http://vpaaz.org/tourdecoops');

    Previous versions of this answer: 08/02/12 at 5:28pm

    • 08/02/12 5:27pm

      Luis Abarca says:

      to update wp_posts you need acces to your mysql database, with phpMyAdmin maybe


      UPDATE wp_options SET option_value = replace(option_value, 'olddomain.com', 'newdomain.com') WHERE option_name = 'home' OR option_name = 'siteurl';

      UPDATE wp_posts SET guid = replace(guid, 'olddomain.com', 'newdomain.com');

      UPDATE wp_posts SET post_content = replace(post_content, 'olddomain.com', 'newdomain.com');

  • avatar
    Last edited:
    08/02/12
    5:26pm
    Abdelhadi Touil says:

    Hi.
    To reverse what your client hav done, you must edit website setting via phpMyadmin and edit Options table in the wordpress database, then you can find a plugin to search and replace all old url to the new one.
    Good luck.

    • 08/02/12 5:29pm

      Abdelhadi Touil says:

      This link may help you:
      http://nepallica.com/change-site-url-of-wordpress/
      and also you can search for:

    • 08/02/12 5:30pm

      Abdelhadi Touil says:

      and this is great to:
      http://yoast.com/move-wordpress-blog-domain-10-steps/
      Good luck.

This question has expired.



Gabriel Reguly, Hai Bui, Francisco Javier Carazo Gil, Arnav Joy, little D voted on this question.



Current status of this question: Completed



Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.