I wanted to create a dev site for my main wordpress site. So I copied my wordpress files to the virtual host server and imported the database from my main site. Then I ran wp search-replace 'www.mobisium' 'dev.mobisium'
(main site= 'www.mobisium' dev='dev.mobisium') to change the database url's.
Then I created a dns for dev.mobisium using cloudflare. But now when I visit dev.mobisium it redirects me to the main domain mobisium. I don't know much about wordpress and server management. I just followed my colleague instructions.
Solutions I tried:
- tried adding
define('WP_HOME','');
define('WP_SITEURL','');
to wp-config file. - adding home and site URL in wp_options in the database, but there is no home and site URL in wp_options in the database.