Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

we have a wordpress installation running on address We wanted to have a development site for it as a subdomain, so we created a subdomain on cpanel. Created a duplicate of its database and replicated the files to the directory root of Then modified wp-config.php to point to the duplicate db. Now the problem is, when we try to access, it redirects to

Anybody can help me with this?

share|improve this question
When you copied the database, did you change the site url to the sub domain? It is usually the first record in the wp_options table. – Charles Clarkson Aug 8 '13 at 20:25
@CharlesClarkson Actually, I'm using this… to change wp_options and wp_posts url to my new url. Still no luck, I'm dumping my db now to check again for any occurences of my old url. – Bryan CS Aug 8 '13 at 20:46
Check your theme files too. – Charles Clarkson Aug 8 '13 at 20:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.