最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

server - dev site running on subdomain is redirecting to the main domain

programmeradmin2浏览0评论

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.
发布评论

评论列表(0)

  1. 暂无评论