120708 Install Wp in Subdirectory (of Domain) ex: domain www.abc.com put Wp into subdirectory www.abc.com/wpsite, but have all references and links to www.abc.com FOLLOW DIRECTIONS: Ref: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory Ref: (for fixing DB): wordpress.org/support/topic/moved-to-subdirectory-now-cant-login?replies=7 ---------- 0. If FireFTP cannot see .htaccess (invisible files) do: FireFTP> Options> make hidden files visible 1. COPY both of these files to Root dir (ie, COPY - the originals must still be in /wpsite): - index.php - .htaccess ---------- 2. Index.php (the copy in Root) - include the /wpsite subdirectory in the path: from: require('./wp-blog-header.php'); to: require('./wpsite/wp-blog-header.php'); ---------- 3. Make changes to WP>Admin>Settings>General: WP address (URL): wp.abc.com/wpsite Site address (URL): www.abc.com ---------- 4. NOTE: Immediately after step 3 change, SITE MAY BE UNREACHABLE (including inability to login) The problem: the WP database is now referrring to the wrong location (ie, is looking for WP in the Root, rather than in the /wpsite subdirectory) SOLUTION: ref: wordpress.org/support/topic/moved-to-subdirectory-now-cant-login?replies=7 Go to Bluehost phpMyAdmin, to DB, to wp_options, the site_url. Enter Correct WP installation path. So: Bluehost> phpMyAdmin> go to appropriate DB> find wp_options> Look for 'site_url': it will probably be WRONG (ie, www.abc.com, when should be www.abc.com/wpsite) Use Edit (the pencil icon) to change to correct Site Installation Path (www.abc.com/wpsite) > 'Go' NOW: The site should work (www.abc.com) and login s/be possible (www.abc.com/wpsite/wp-admin