• Okay, can I just get a straight answer on this?

    With WP installed into a subdirectory (/blog) and permalinked to the root (copied .htaccess and index.php to root directory and edited index.php properly), what should the following .htaccess files look like?

    a) the .htaccess in the root
    b) the .htaccess in /blog

    Should I even have 2 .htaccess at this point? Should the /blog one be blank?

    Right now I have this in my /blog .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

    and this in my root .htaccess

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

    What is correct? Should they be the other way? Should the /blog .htaccess even have anything? Why is my site working still but my admin panel serving 500 errors?

Viewing 1 replies (of 1 total)
  • Thread Starter tuccimane

    (@tuccimane)

    Why did changing RewriteEngine to Off in my /blog .htaccess suddenly stop the 500 errors and let me in to my admin (albeit with terribly slow loading rates)?

    Edit: and then going in and saving permalinks broke everything again.

    This is something to do with my caching plugin I have a feeling…

    Is there an easy way to just reinstall my site to the root so I can stop trying to work around all this. This is just insane trying to get things to work with a setup like this. It works until you try to optimize things, then everything gets jumbled and breaks.

    I don’t think the people who develop all these plugins really have setups like this in mind. They ultimately develop so it works with a root install and the rest is just updating bit by bit trying to assist people with sites setup uncommon ways, but they aren’t dedicated to it like they are to making things work for the simple people who just install into the root.

Viewing 1 replies (of 1 total)
  • The topic ‘.htaccess when WP in subdirectory’ is closed to new replies.