• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / Changed the url in general setting then can't access my wp admin pages

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

  • Unknown's avatar
    waqarronnie · Member · May 19, 2013 at 8:07 am
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    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: (visible only to logged in users)

  • Unknown's avatar
    raincoaster · Member · May 19, 2013 at 8:53 am
    • Copy link Copy link

    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.

  • The topic ‘Changed the url in general setting then can't access my wp admin pages’ is closed to new replies.

Tags

  • Can't access login after chenging url.
  • changing url

About this topic

  • In: Support
  • 2 participants
  • 1 reply
  • Last activity 13 years
  • Latest reply from waqarronnie

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions