• I am having problems with the .htacess, wp-admin, and/or the subdirectory after trying to eliminate the subfolder in the URL. We followed the instructions on the codex, but more than one person has been working on fixing it and now we have a mess, including messed up .htaccess files. We have attempted to restore it by moving the index.php and .htacess BACK to the subdirectory.

    -The web address is cdllife.com and it is hosted at GoDaddy

    -I can access everything (including posts), but am given a redirection/infinite loop error at cdllife.com/CDLLIFE/wp-admin (via Firefox) and a 404 if the subfolder is withheld from the url. I cannot access the admin panel or even the login screen. This is the exact error message:

    “The page isn’t redirecting properly” “Firefox has detected that the server is redirecting the request for this address in a way that will never complete.”

    -I am not sure what the blog home and url are set at under the general settings (I am assuming it is directing to the subdirectory), but I’ve tried setting it differently in the wp-config file and this always results in the site returning a 404 error or worse.

    -There is an .htaccess file at the domain level and this is the contents:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /CDLLIFE/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /CDLLIFE/index.php [L]
    </IfModule>
    # END WordPress

    There is also an .htaccess file in the subdirectory where WordPress is installed. This is what it contains:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine Off
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    I’ve tried everything I can, but I’m not sure how to fix it. I’d rather not do a clean install on the www level, but that’s my next step ??

    Please help! If I can provide any additional information, please let me know… and THANK YOU!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello kgw535s. I visited your website and I see you’re still not up and running. Here is a link to an article in the Codex.
    WordPress in it Own Directory.
    It is a bit confusing so I’ll give you a short version.
    If you have your WordPress files in a sub-directory named CDLIFE. Here is how your .htaccess files should read like this at RewriteBase and RewriteRule lines.

    In the root(www) directory .htaccess:
    RewriteBase /
    RewriteRule . /index.php [L]

    The index.php file should have this line

    require(‘./CDLIFE/wp-blog-header.php’);

    In the CDLIFE directory, where your WordPress files are.
    .htaccess
    RewriteBase /CDLIFE
    RewritwRule . /CDLIFE/index.php [L]

    index.php file
    require(‘./wp-blog-header.php’);
    I hope this helps.

    If you are still having problems, make sure that these are the #Begin WordPress is the only block of code in each .htaccess file and test after adding other directives such as security measures etc.

    Good luck!

    I’m having same issue and htaccess is not showing the WP install directory, but the following

    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    Despite saving my permalink setting in WP admin many times, this doesn’t change although website works fine, just redirection plugin doen’t ??

    Annoyingly the codex article doesn’t mention what htaccess changes should be for subdirectory installs

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘.htaccess problem on subdirectory install’ is closed to new replies.