I have a site in test right now at http://www.knowlan.com/wordpress, with my blog integrated into it. I like the way it all functions.
Now I want to have it take over my domain - http://www.knowlan.com as the main site.
I read the document "Giving WordPress Its Own Directory" here:
It says "If you already have WordPress installed in its own folder (i.e. http://example.com/wordpress) then the steps are as follows:"
This is precisely my situation.
The two steps that puzzle me are:
5. Open your root directory's index.php file in a text editor
6. Change the following and save the file. Change the line that says:
to the following, using your directory name for the WordPress core files:
I took a generic index.php file from WordPress and uploaded it to the root directory. But it does not have the line referenced in step 6.
What I have in this copy of index.php is the following:
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
Did I take the wrong index.php file? It came from the download for my version of WP, which is 3.3.1. I am running it in the Twenty Ten theme.
What would I change to have it run wordpress as the main site while the site is actually loaded in the subdirectory "knowlan.com/wordpress"?
Second, I don't understand what the instruction says I should be changing to code to. My website/blog is in knowlan.com/wordpress. If I want it to be called up by "knowlan.com", what should the change be?
Finally, one of the earlier instructions in the Codex referenced above is to copy .htaccess into the root directory. I've done so, but when I open it up to look at it, it is empty. No code, notes, comments - nothing. I understand wordpress may rewrite this when it starts up, but I'm not sure. Should I go ahead with the blank .htaccess?