I want to have 2 versions of the site. A testing/development version, and a public, live version. When I try to go to dev.mysite.com, it just redirects to www.mysite.com.
I completely deleted the .htaccess files and that did nothing, so it must be somewhere in wordpress’s files. Has anyone ever done this before? There’s so many includes in the core files, I’m getting lost.
It’s fine if the site uses the same database, I just want to be able to essentially have a “breakable” site that the general users can’t see.
Does anybody know where I would need to make a change to keep it from redirecting?
Add these 2 lines in your
wp-config.php
: