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
- Storing Images in DB – Yea or Nay?
- How to fetch Data in WordPress using MySQLi or $wpdb
- Is sanitize_text_field() is enough to save to DB?
- Dealing with Many Meta Values, 30+
- Ways of managing staging and production wordpress sites?
- Corrupt WordPress Database
- Updating all rows of table with $wpdb
- What actions affect files, DB, or both?
- Cannot unserialize WordPress serialized values in `wp_options` table?
- Is $wpdb->prepare escaping to much? How to use it properly?
- 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
- 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?
- WordPress and MySQL: how to transfer Meta_key and Meta_Value from one post_id to another
- Output custom content not from the posts table?
- Reducing Database Query Time
- How can I get my wordpress password from an SQL file?
- 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)?
- Form that sends data to an admin panel and can export it
- All text disappeared (seems to be a database problem) [closed]
- Convert user passwords to MD5?
- is wordpress stores Role Id in WP database?
- Why do database examples sometimes finish with an add_option call?
- How to backup my site and restore my wordpress site
- unsuccessful attempt to change domains- wordpress re-routing to old domain
- How and where is wordpress adding mySQL content to database?
- restore a db after bad backup
- How get Data form wordpress database as array not stdclass?
- cannot connect database
- How to delete a particular row in a database table
- Connecting to wordpress database in my application [closed]
- change the year on all of my custom post types?
- WordPress keeps redirecting to localhost
- get value from ‘terms’ table
- custom tables in wordpress Database? (can i just create them with sql?)
- New installation fatal error in 5.9.3 at edit or create entry
- How to rename custom table name programatically in wordpress?
- Displaying requested data from a the database in wordpress
- Accidently changed the GUID
- generate PDF from member information
- Is it safe to add INDEX to a column in WordPress database?
- Help posting values to DB on submit using $wpdb->query
- Restore Old Database Over Newer WP & Plugin Files
- How to create index (sql) to a meta_key?
- Not sure what to do next to optimize
- Database structure for thousands of posts
- Performance bug – slow DB query
- WordPress adding item to menu deletes post metadata
- Updating database with CSV file and Cron job
- Limit Number of Custom Post Type Dashboard
- Improving wpdb queries with large data
- Changed meta_key value in structures, now dashboard shows zero users
- Why is wordpress trying to re-install itself?
- How to Determine a Post’s Last Edited Date?
- Searchable database of members using multiple criteria / filters
- I broke database after reuploading local version – what exactly happened? Database error
- Working local with one database
- Using class id from array for query
- Inserting into data into external DB using WPDB
- Error at time of WordPress Installation
- WordPress dbdelta a semicolon
- single.php not pulling in any data from database
- How do I use update_option to give me a new option name each time a form is submitted? [duplicate]
- How do join in query with WordPress
- How to create a table that interact with database in real time
- WordPress Theme Customize doesn’t save changes
- wp-config was suddenly updated
- Weird WP -Cli Error Connection Refused
- 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?