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.

$5
Accidentally changed the Site URL in General Settings

I need someone to manually change the site's URL and Home back to what they should be.

Site URL: www.StJohnsLacrosse.com/laxprogram
Site Home: www.StJohnsLacrosse.com

This question has been answered.

Patrick MacAdams | 06/05/12 at 1:50pm Edit


(9) 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:
    06/05/12
    1:55pm
    John Cotton says:

    They are entries in the wp_options table of the database - you can change them there..

    (You can also edit your wp-config.php file)

    Previous versions of this answer: 06/05/12 at 1:55pm

  • avatar
    Last edited:
    06/05/12
    1:54pm
    Jerson Baguio says:

    just modify the database table under wp_options.. or just pm i can help you modify that

  • avatar
    Last edited:
    06/05/12
    1:54pm
    Francisco Javier Carazo Gil says:

    Hi Patrick,

    Don't worry. Go to phpMyAdmin find "site_url" into "wp_options" table and change it.

  • avatar
    Last edited:
    06/05/12
    1:58pm
    Jatin Soni says:

    I understood that you want to change Site URL as www.StJohnsLacrosse.com instead of www.StJohnsLacrosse.com/laxprogram

    give me the access of the database. that will take a min to do

    or
    edit yourself into the databse
    wp_options > siteurl (third) click on edit and change the option_value what you want

    Previous versions of this answer: 06/05/12 at 1:58pm

  • avatar
    Last edited:
    06/05/12
    1:56pm
    Manoj Raj says:

    update_option('siteurl','http://example.com');
    update_option('home','http://example.com');

    add this to functions.php and then enter the blog...

  • avatar
    Last edited:
    06/05/12
    1:57pm
    Ross Wilson says:

    You can also use the wordpress relocate method to recover the settings
    http://codex.wordpress.org/Changing_The_Site_URL#Relocate_method

  • avatar
    Last edited:
    06/05/12
    1:58pm
    derekshirk says:

    I think you can also add this to your config.php in the root level of your Wordpress directory

    define('WP_SITEURL', 'http://example.com');
    define('WP_HOME', 'http://example.com');

  • avatar
    Last edited:
    06/05/12
    2:00pm
    M. Daniel says:

    Hi Patrick,

    You have 2 options:

    1. To fix this issue if you have Cpanel:

    Open up phpMyAdmin:
    - Select the database in which your WP install resides
    - Select wp_options table from the left hand side list

    Now you need to modify 2 things:

    siteurl (it has option_id number 1)
    home (option_id 37)

    You should backup your site before doing this!
    http://codex.wordpress.org/WordPress_Backups#Simple_Backup

    2. Follow the steps listed on the wordpress Codex:

    http://codex.wordpress.org/Changing_The_Site_URL

  • avatar
    Last edited:
    06/05/12
    3:40pm
    Agus Setiawan says:

    Open up wp-config.php and paste these lines (with your site name) into it after the initial commenting:

    define('WP_HOME', 'http://sitename.com');
    define('WP_SITEURL', 'http://sitename.com');

This question has expired.



Gabriel Reguly, Patrick MacAdams, Jurre Hanema 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.