Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I followed the instructions below to the T and it worked very well except that now I have a duplicate copy of my wordpress site both on the sub domain and on the root domain. How do I remove the site from the sub domain? Thanks!!

Instructions Followed:

You can actually just leave your files in that subfolder and follow these steps per the codex.

  1. In the general settings, change your Site Address (URL), not the Wordpress Address URL, to http://example.com/ and save.

  2. Copy (NOT MOVE!) the index.php and .htaccess files from your subdirectory into the root directory of your site.

  3. Open your root directory's index.php file in a text editor

  4. Change the line that says: require('./wp-blog-header.php'); to the following, using your directory name for the WordPress core files: require('./test/wp-blog-header.php');

  5. Login to the new location. It might now be http://example.com/wordpress/wp-admin/ If you have set up Permalinks, go to the Permalinks panel and update your Permalink structure. WordPress will automatically update your .htaccess file if it has the appropriate file permissions. If WordPress can't write to your .htaccess file, it will display the new rewrite rules to you, which you should manually copy into your .htaccess file (in the same directory as the main index.php file.)

share|improve this question
    
Do you have two copies of the WordPress files? Did you update your .htaccess file? –  s_ha_dum Dec 19 '13 at 1:44
    
all i did was copy index and htaccess from sub domain into the root directory but i did not make any changes beyond that. yes, have a full working site at the sub domain now i have one at the root domain - the two copies –  jack Dec 19 '13 at 3:54

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.