• I’m having a HUGE problem. I try to log in to my admin page, and I get a message indicating “Directory has no index file.”

    I am able to access my login page if I enter: https://www.domain.com/subfolder/wp-login.php When I enter the password, I get the same “Directory has no index file” message.

    I was attempting to set the site so that when I enter https://www.domain.com, it goes directly to subfolder and the pages contained in there. I currently have a website NOT designed with WP on there, so when you go to https://www.domain.com, it shows the old website, so I wanted it to go to the new website. However, I changed a few things, can’t remember exactly what I did, and now I’m STUCK! Any help would be GREATLY appreciated!

Viewing 13 replies - 1 through 13 (of 13 total)
  • This is me just wildly guessing, but do you have your .htaccess file correctly setup and in the right place?

    Try adding
    DirectoryIndex index.php index.html index.htm
    to the top of your WordPress .htaccess file.

    Thread Starter michellebrad

    (@michellebrad)

    my htaccess file is located in the subfolder and this is what it contains:

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

    (@michellebrad)

    Okay, I have another question … I don’t know much about htaccess files, but my subfolder is nWP. Is this code indicating that my wordpress files are located in a subfolder named wordpress?

    No – it suggests that your WP files are in a sub-folder called nWP.

    Thread Starter michellebrad

    (@michellebrad)

    even though it has /wordpress/index.php listed?

    I have a file titled wordpress too, which is why I asked.

    At the end of the day, only you can see where you installed WordPress on your domain. We only now what you tell us.

    Thread Starter michellebrad

    (@michellebrad)

    I guess what I’m asking is.. if my files and everything that I want for this website is installed in a subfolder named nWP, should my htaccess file look like this:

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

    OR should I change the code to look like this: (I moved the changed lines over so you could tell which ones I changed)

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

    It should look like the latter example.

    Thread Starter michellebrad

    (@michellebrad)

    Okay, I changed the htaccess page, and nothing happened. I’m still having the same issue. I have the htaccess in the nWP folder… should it be in the root?

    I’m so frustrated – thanks for your help… I truly appreciate it!

    Is WordPress running the root domain?

    Thread Starter michellebrad

    (@michellebrad)

    I’m not sure what you mean.. I’m a bit new to all of this. Right now, I have an index.html file and an index.htm file in the root folder. They are NOT wordpress. WordPress, pages and everything is installed in the nWP subfolder. Originally, I wanted to set it up so that when they go to mydomain.com, they get the wordpress site, but in trying to do that, I messed up the entire thing!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Urgent need for help! Can't access admin page!’ is closed to new replies.