This is because the URL settings inside WordPress are still pointing to the old WordPress site. More information is available in the Moving WordPress documentation.
If your WordPress admin pages are still working, you can go to Settings → General, and change the WordPress URL and the Site Address to the correct values.
If your WordPress site is completely broken, then you can add the following values to wp-config.php
, which will have the same effect:
define('WP_HOME', 'http://your_server/blog');
define('WP_SITEURL', 'http://your_server/blog');
Note that in most cases, WP_HOME and WP_SITEURL will be the same, apart from exceptional circumstances.
Related Posts:
- Why am I unable to login after converting to www?
- new subdomain to apply as main domain
- unsuccessful attempt to change domains- wordpress re-routing to old domain
- Use of domain name
- Registering for a domain on WordPress
- Run two wordpress on the same domain
- How to access wp-admin from original website after setting the domain redirect/forwarding
- WordPress Redirects to a cancelled domain, need to change it but can’t get to the admin portal
- Reestablishing Automatic and Secure FTP Connection, Primary Domain Change
- Site admin can login but cannot access wp-admin after domain migration?
- “Too many redirects” ONLY when trying to access wp-admin page
- Admin Page Redirect
- How to prevent access to wp-admin for certain user roles?
- How to hook in and modify the new revisions UI (3.6+)?
- Limit widget to certain sidebar?
- Unable to login to my wordpress site. reauth=1 redirection loop
- wp_list_tables bulk actions
- Highlight custom widgets in the admin area?
- Can I add custom attributes while adding inline scripts?
- create users to site with specific language
- Hide a page in the admin end without a plugin?
- Prevent from deleting any user role but subscriber
- Disable sticky posts feature
- Hide username from users list
- Remove HTTP: from the site URL and just keep // in it
- Prevent Admin gui output from page added using add_submenu_page
- Activating Child Theme Breaks Website, Blank Page, Error 500
- wp-admin blank in a clean install of WordPress on PHP 5.4 [closed]
- How to use Yoast SEO backend in english even if WPLANG variable is not english?
- Admin first hook that outputs HTML?
- WP Database Error (Windows Server 2008 & SQL Server)
- Cloned a site but can’t log in – redirecting to old site
- Can I edit the wp_post > post_content right before its inserted/updated?
- Should I add the IP of the server that hosts my sites to the list of authorized IPs in the wp-admin/.htaccess?
- wp-admin edit user url wont show up correct url [closed]
- Which HTTP headers to use for subdomain embedding?
- To remove default dashboard items and add quick draft widget for custom post type
- FORCE_SSL_ADMIN not working
- I get “The PHP Date/Time library is not supported by your web host.” on my CentOS host, what library to I need to install to add support?
- wp_before_admin_bar_render action not working in back office
- Can enter wp-admin when logged in with custom ajax
- Locked Out Of WordPress Admin Dashboard After Server Move
- lock meta box position on post edit screen for contributors
- map_meta_cap was called incorrectly error?
- How do I host WordPress on a hidden domain through a reverse proxy?
- Clicking On View Post In Draft Opens New Tab
- How to set admin login page as home page
- Users disappeared from wp-admin
- Created a new subdomain with same content. Should I add a redirect in my old subdomain?
- Placing a custom Control element in an existing block InspectorControls panel
- What are the requirements to make the admin toolbar show up on the front end
- Sorry, you are not allowed to access this page
- wp-admin folder removed by hacker [closed]
- Hide username discovery
- Cookie Domain is preventing Admin login
- How to use the built in tooltip for form validation error messages in WP admin plugin?
- _wpnonce blank screen
- Custom Admin Pagination links
- Have different site location for wp-admin in IIS
- Lost administrator privileges and can’t find a fix
- How to display site title with post title?
- Cant login to wp-admin
- Cannot redeclare wp_update_core()
- WP-admin or any other is redirecting me to (This page doesn’t seem to exist.)
- Remove WP Admin Menu Items by User Role
- Adding a button to send email to a user in WordPress Admin Users table
- Our Team not showing on website [closed]
- Get current session in WP admin
- Strange problem with HIdden Input field and WPAlchemy
- Uncaught SyntaxError: Unexpected Token Illegal
- How to remove the Login Customizer menu from the WordPress dashboard
- How to add a field on the user creation page?
- How to check if a user is in a specific role?
- Login redirect_to url is pointing to a url with the port
- data-vocabulary.org schema
- Unable to access my page or WP Admin
- Get current URL in Form action
- My WP-Admin is showing a blank screen
- How to move “Collapse Menu” to top of admin bar?
- Appearance -> Menus doesn’t show
- wp-admin ERR_CONNECTION_TIMED_OUT only on certain networks
- Show comments in Backend
- How to hide comments from private posts on user dashboard
- Conditions for admin get_current_screen action parent_file edit.php?post_type=page
- Replace whole paragraph on multiple pages
- Error establishing a database connection – after updating DNS
- Messed something up, and now I can’t get into wp-admin
- Handling multiple account logins?
- Admin section showing CUSTOM Permalink structure thus resulting in permission error [closed]
- Hook into backbone to add js to wp-admin -> media library?
- Weird admin area
- Renaming child-theme folder fixed wp-admin blank
- Unable to access dashboard (wp-admin) only
- is_admin() conditional statement
- Admin Login page not working at all
- Non Object Notice Error – How to fix please
- wha does the following function remove from wordpress users admin area? [closed]
- Override WordPress Core File?
- WordPress Users page missing user count next to different types of users
- Not receiving verification email to update administrator email in wordpress