Need help? Check out our Support site, then


Changed the url in general setting then can't access my wp admin pages

  1. Hi everyone !!
    I am facing a problem after changed to url in general setting then I can't access my site or wp admin.
    Today i tried to change it in the data base as following:

    Changing the URL directly in the database

    If you know how to access phpMyAdmin on your host, then you can edit these values directly to get you up and running again.

      Backup your database and save the copy off-site.
      Login to phpMyAdmin.
      Click the link to your Databases.
      A list of your databases will appear. Choose the one that is your WordPress database.
      All the tables in your database will appear on the screen.
      From the list, look for wp_options. Note: The table prefix of wp_ may be different if you changed it when installing.
      Click on the small icon indicated as Browse.
      A screen will open with a list of the fields within the wp_options table.
      Under the field option_name, scroll down and look for siteurl.
      Click the Edit Field icon which usually is found at the far left at the beginning of the row.
      The Edit Field window will appear.
      In the input box for option_value, carefully change the URL information to the new address.
      Verify this is correct and click Go to save the information.
      You should be returned to your wp_options table.
      Look for the home field in the table and click Edit Field. Note There are several pages of tables inside wp_options. Look for the > symbol to page through them.
      In the input box for option_value, carefully change the URL information to the new address.
      Verify this is correct and click Go to save the information.

    Then also some changed in file manager as following:

    If you have accidentally changed your WordPress site URL

    Suppose you accidentally changed the URIs where you cannot move the files. (but still can access the login page, through a redirection or something)

    wp-login.php can be used to (re-)set the URIs. Find this line:

    require( dirname(__FILE__) . '/wp-load.php' );

    and insert the following lines below:

    //FIXME: do comment/remove these hack lines. (once the database is updated)
    update_option('siteurl', 'http://your.domain.name/the/path' );
    update_option('home', 'http://your.domain.name/the/path' );

    You're done. Test your site to make sure that it works right. If the change involves a new address for your blog, make sure you let people know the new address, and consider adding some redirection instructions in your .htaccess file to guide visitors to the new location.

    But I couldn't resolved it.Please someone helpme as follows.Now I want to access my wp admin.And change it as following link.:http://www.amarshikkha.com.

    The blog I need help with is waqarinfo.wordpress.com.

  2. You are in the wrong forum and need to be asking at WordPress.ORG. Our software works differently here and we won't be able to help you.

Topic Closed

This topic has been closed to new replies.

About this Topic