• I don’t quite understand how to construct things for .htaccess and have tried a few things off the Internet but I can’t get this working.

    I recently moved my blog from a /wordpress/ sub-directory into the root and am now reminded of why I didn’t have it there in the first place. I have two sub-directories on the domain I need to access but when I try to now, I get a WordPress “Nothing found at dirname” error message.

    How do I get this to work? Both sub-directories are password protected. This is the current contents of my .htaccess file and I want to set this up and not have to worry about WordPress writing over these changes (as in set it up, outside of the WordPress block):

    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>

    deny from 77.88.147.13
    deny from 77.88.147.

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

    Any help would be greatly appreciated!

  • The topic ‘Exclude sub-dirs from permalinks rewrite’ is closed to new replies.