This should be solved by http:// in front of site_url and home in the wp_options table of your database.
You can try adding below in wp-config.php
define( 'WP_SITEURL', 'http://subdomain.example.com' );
define( 'WP_HOME', 'http://subdomain.example.com' );
For more details follow this link hope this will help.
Related Posts:
- How to move existing WordPress wp-content folder along with database to new server and new domain name?
- Can’t update database after wordpress update from 3.8.1 to 4.4.1
- Why does WordPress rely on an fully qualified site_url with a 15-step plan for moving a site?
- Add search Value to wp_list_table pagination
- Why are no posts showing despite my apparently correct DB restoration?
- Redirecting to old domain after migration website
- Retrieve data from the database to table such as comments in the admin control panel
- Adding prefix to WordPress database tables breaks admin capabilities?
- Is my way to change WordPress server is correct?
- Custom Post Type not showing anything added by code anymore?
- WordPress site migration – locked out of admin area
- WordPress Migration – Issue with admin panel changes
- Do I need to be selective about where I search and replace when pointing a domain to a subfolder used for development?
- Change Domain name in database
- Recover Same WordPress Admin Password
- cannot access wp-admin after options table crash and repair
- Database Queries are crashing the server
- How to protect my credentials on my clients website
- What are the differences between B trees and B+ trees?
- Strange Characters in database text: Ã, Ã, ¢, â‚ €,
- Storing Images in DB – Yea or Nay?
- How to fetch Data in WordPress using MySQLi or $wpdb
- Connect to database using wordpress wp-config file
- Is sanitize_text_field() is enough to save to DB?
- Does wpdb add considerable overhead on queries with large result sets?
- Dealing with Many Meta Values, 30+
- Ways of managing staging and production wordpress sites?
- wp_users user_status field
- Display data from a non wordpress database on a page template
- Is it possible to switch the data layer within WordPress?
- Changing the Database Connection Error Message
- What is the most secure way to store post meta data in WP?
- Should I hint table index for search query on wp_post
- Corrupt WordPress Database
- Have multiple local wordpress installs share a wp-content folder and database
- Connecting to external oracle database
- Bulk Update of Custom Post Type Post Status through SQL
- How do I add indexes to WordPress Database?
- Faulty restore of the database, encoding issue
- Multiple installation in a single database
- Huge wp_options table
- Can’t save ajax value to database
- Updating all rows of table with $wpdb
- What actions affect files, DB, or both?
- Cannot unserialize WordPress serialized values in `wp_options` table?
- Block search SQL from happening
- Is $wpdb->prepare escaping to much? How to use it properly?
- wp_options table has duplicate rows and primary key / autoincrement has been removed
- What is the purpose of storing `siteurl` in database?
- How to log database changes during an upgrade?
- Using same database for main and subdomain
- What is stored in the webserver? (Separated Database)
- Remove database entries where post_date > expiration date
- Installation with sql server express edition
- Emojis getting converted to “?”
- Building a Scalable Resiliant WP Setup
- Single database for multiple instances
- Get all tags not just first 10 with wp api 2.0
- Should non-WordPress data get its own DB?
- Search and replace special characters (å,ä,ö) for image attachments only in database
- Accidentally deleted active_plugins portion of the wp_options DB table
- Automate dir and DB stack creation with WP-CLI
- Moving WP from local server to live, error establishing a db connection
- delete post meta from db, even if does not exist?
- In what part of the WordPress core does the users table and usermeta table get joined?
- Is there a way to see history of WordPress database changes?
- WordPress and MySQL: how to transfer Meta_key and Meta_Value from one post_id to another
- Where does the actual data stored by add_post_meta
- Output custom content not from the posts table?
- Exporting table to csv works in the admin but exports HTML data when used on the front end
- wp search-replace (not executing)
- Reducing Database Query Time
- How can I get my wordpress password from an SQL file?
- How to have an external DB read and get data from my wordpress database
- Import users from old WP site to new one
- Create table from array with prepare
- Migrate database between 2 different wordpress version
- Is there an atomic way to update_option in WordPress (to ensure data integrity)?
- $wpdb error (Call to a member function insert() on a non-object)
- Global__r connection timed out
- Moving WordPress site to new domain – database import [duplicate]
- Location of WP default mySQL tables creation file?
- Disable Database Update Required ? break my website
- Select From wpdb – Author/User Directory page
- Best Practice? – Saving multiple Values as Serialized Data / Saving each Value per Row / Dedicated Table
- How can I find user role in Mysql?
- Troubles when I want to connect to another DB
- Featured image from custom to WordPress database
- How to edit posts/pages without making the change live?
- Does WordPress Support Using Named Pipes on the Windows Operating System?
- wordpress database error
- How do i get value from wp_postmeta?
- wp-config was suddenly updated
- Weird WP -Cli Error Connection Refused
- Many images in wp-content/uploads folder that are not in Media Library
- Order of search results based off of a backend custom field and also in alpha order
- How to find fresh (last modified) and sql backup?
- Understanding Redundant postmeta Tables in WordPress Database
- Add tags to blog-posts by php-script
- Database table prefix different between wp-config.php and in database