• aaffleck

    (@aaffleck)


    Hi,

    I have created a sub-folder in the html root and can’t seem to access it any way I try. I think it has something to do with .htaccess but not sure.

    This is what my .htaccess looks like.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    #BEGIN Image Upload HTTP Error Fix
    <IfModule mod_security.c>
    <Files async-upload.php>
    
    </Files>
    </IfModule>
    <IfModule security_module>
    <Files async-upload.php>
    
    </Files>
    </IfModule>
    <IfModule security2_module>
    <Files async-upload.php>
    
    </Files>
    </IfModule>
    #END Image Upload HTTP Error Fix
    
    # END WordPress
    RewriteCond %{HTTP_HOST} ^livethelakelife.ca$ [OR]
    RewriteCond %{HTTP_HOST} ^www.livethelakelife.ca$
    RewriteRule ^(.*)$ "http\:\/\/www\.siouxnarrows\-nestorfalls\.ca\/live\-the\-lake\-life\/" [R=301,L]

    Would this be causing a problem when trying to access a url such as

    domain.com/folder

    right now it just gives me a 404 in the regular theme.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Clayton James

    (@claytonjames)

    What happens if you create an .htaccess file with…

    Options +Indexes

    …in it, and drop it in that directory?

    (first I would make sure that ownership and permissions are correct on the subfolder you created).

    Thread Starter aaffleck

    (@aaffleck)

    Hi,

    By default Directory indexing is turned on, so that won’t have any effect on what is going on. I tried it and still the same. Ownership and permissions are set properly. I’m sure it’s something simple that I’m overlooking, but I can’t figure it out.

    Clayton James

    (@claytonjames)

    Correct you are. I was just in your plugins folder with no problem.

    I would say, just for giggles, drop any old index.html file in there and see if it displays when you access the directory. But the 404 makes that seem a little redundant at this point. I know this sounds overly simplistic, but maybe try a permalink refresh and move forward from there. That’s just a wild guess (because it’s an easy step), on my part though. ??

    Best wishes.

    Thread Starter aaffleck

    (@aaffleck)

    Thanks anyways. I figured it out, there was a line of code in the .htaccess file for that directory that was causing the problem.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t access sub folders’ is closed to new replies.