Finally got the WP site accessible

After spending lots of time reworking the site, I stalled at the point of getting the main domain name pointing to the new pages.  The WP Codex was not that helpful, as it does not show what the final .htaccess and index.php files are supposed to look like.

After lots of searching, and a few failed attempts (including messing up access to the login files), I succeeded!  So you’re able to see this!

Short version:  you need to have a copy of the hidden file .htaccess and the visible file index.php in BOTH the top-level directory (public_html or www) and in the WordPress subdirectory (wp, etc).  The contents of each file vary in a small but critical manner.

public_htmlwp
.htaccess filesRewriteBase /
RewriteRule ./index.php [L]
RewriteBase /wp
RewriteRule ./wp/index.php
index.php filesrequire ('wp/wp-blog-header.php')require ('./wp-blog-header.php')

And then it kept pointing the Blog link to the old site!  WordPress is generally easy to use, but when you have to dive under the hood, the instructions leave a bit to be desired.

1 Comments on “Finally got the WP site accessible