Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter senorwooly

    (@senorwooly)

    I have just reinstalled twice, once automatically and once manually. No change.

    Every tutorial online about installing WordPress in a sub-directory makes the same assumption — that you want to install it in a sub-directory, but that you want it to appear in your root.

    That’s NOT what I want. I want the blog to be installed and to run in the root directory.

    Can anyone help on this?

    Thread Starter senorwooly

    (@senorwooly)

    By the way, I’ve checked every tutorial I can find online on how to install wordpress in a sub-directory.

    They all say the same thing.

    Change your WordPress address (URL). Done.
    Change your Site address (URL). Done.
    Move your .htaccess to root folder. Done.
    Add ‘require(‘./blog/wp-blog-header.php’); to the top of every page. Done.

    The only thing I haven’t done is to load the WordPress index.php into the root directory. However, I don’t want to do that, since it would delete the index.php file that I’m already using at the root of my site.

    Thread Starter senorwooly

    (@senorwooly)

    This is what I have in my .htaccess:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>
    # END WordPress
    Thread Starter senorwooly

    (@senorwooly)

    Thanks so much. That works. Just have to make a note about the change so I can do it again after updating WP.

    Much appreciated.

    Thread Starter senorwooly

    (@senorwooly)

    Well, I figured out how to make the cookie available so it exists sitewide. I’ve added the “Root Cookie Path” plugin, so that the cookies are available to the whole domain — not just a the sub-directory in which WordPress is installed.

    However, now that I’ve taken that step, how do I write the basic code in order to check if that cookie exists? That’s all I need, and then this whole problem is solved.

    If (Cookie exists) then…etc.

    I can figure out the THEN statements. However, what is the name of the cookie that I should be testing for?

    Thanks so much.

Viewing 5 replies - 1 through 5 (of 5 total)