• barf3614

    (@barf3614)


    Right from the start I know nothing about .htaccess . I know it’s there and can open it if needed and it controls access somehow. My wordpress is in the root directory and works perfect. my issue is, I can’t access any other folders/files outside of WordPress without getting a 404 error file not found. Here’s how the .htaccess file looks:

    # 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

    To access my wordpress you go to mydomain.com. I decided to build another .html set of pages in another file. mydomain.com/friends/
    I just used FTP to upload the folder and files to my server. I know that’s ok because it’s as basic .html as you can get.
    So why can’t I access mydomain.com/friends/index.html without wordpress kicking in saying error 404 file not found?

    I’m using the latest wordpress and everythings updated. It’s been doing this ever since I started working on the site years ago.

    Thanks in advance for any help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter barf3614

    (@barf3614)

    Wow! Maybe my question was really stupid! Not a sole replied. I looked in the forum but everything seems to address not accessing WP files,etc. Maybe someone could at least point me in a direction to find it myself. I have no problem reading and learning.

    I feel like it’s something to do with the .htaccess file.

    Am I close?

    Anybody?

    I had same issue. Multisite install at root level. Added WHMCS in its own folder. Worked well. In order to lock out folks while I was configuring WHMCS, I added a deny code to .htaccess within the WHMCS folder. When folks attempted to access WHMCS from outside of IP range, they would get a WP 404 error. When I removed the code, access was available again. I had forgotten about what I had done and was at my wits end messing with the root .htaccess. A host9 support guy looked at it from the outside and immediately went to .htaccess in the WHMCS folder. Sure enough he discovered the deny code. After it was removed, all is well.

    Conclusion: Look first at .htaccess in non-wordpress folder before messing with .htaccess in root.

    Let me know if that was helpful at all.

    Cheers.

    Did you ever get anywhere on this? I have an old version of a clients site that I am having to view to duplicate in WordPress and cannot get it to load.

    https://www.domain.com/old should pull up the clients full old website, but it’s not.

    Thread Starter barf3614

    (@barf3614)

    No. Noone ever answered. I think it has something to do with .htaccess files but not sure. I just ended up putting them on another website.
    Create a sub domain subdmain.yoursite.com and try that. Can’t remember if I tried that or not.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can't access other folders/files outside of WordPress.’ is closed to new replies.