• I reset my admin password via the mail service a few days ago, and managed to log on once. Next logon failed, and now I can’t get in at all (not even browse the index page). I get this message:

    403 Forbidden
    You don’t have permission to access / on this server

    Reading other related topics points me in the direction of .htaccess. I am not sure if this is a wrong track. Anyway, I can’t interprete this file. Does the below contents make sence? Does it indicate a problem?

    # 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

    Thanks for any advice/support

Viewing 10 replies - 1 through 10 (of 10 total)
  • David

    (@thatseoguydavid)

    if you just want to identify if thats whats causing your problem you could make a backup of the .htaccess file and temporarily delete it from your server than try to login.

    if you can login you know that’s the problem. If it is the problem it will have to be sorted out quickly as you could be losing search engine rankings. Remember this changes the address of your posts so be careful.

    Have you manually added this .htaccess file?
    When you were able to login did you add any new plugins or delete any files from the server?
    Who is your hosting company? I would contact them as well.

    Thread Starter Olsstad

    (@olsstad)

    Thanks for your support. I never touched .htaccess myself – I had no clue what it was about. My hosting company claims that this is WP-specific, and can’t help me out.

    Now I tried to follow your advice, renamed .htaccess temporarily, and then I can browse my index page again.

    However, I can’t access any of the other pages. They all cause a “404 -Not Found” error. Could this be related to .htaccess as well?

    David

    (@thatseoguydavid)

    have you installed or activated any new plugins lately?

    David

    (@thatseoguydavid)

    I wonder if changing the password also changed the database password, you should look into that. If you inadvertently changed your database password you need to update the wp-config file

    Thread Starter Olsstad

    (@olsstad)

    No new plugins for a looong time.

    Now I just tried to logon via dashboard as admin with my new password, and it works too. So current status is: I can access index page and logon to dashboard, but not browse any other pages (all with .htaccess removed)

    About wp-config: I recently split my wp-config in two due to security reasons recommended by my host. I created a wp.inc file directly under rooot. This file contains the db_name, db_user and db_password. I include this wp.inc from wp-config. Seems to work. I just checked the password again, which seems to be correct.

    David

    (@thatseoguydavid)

    whats your url?

    try reuploading the .htaccess file and see if it’s working now, sorry running out of ideas 🙁

    Thread Starter Olsstad

    (@olsstad)

    My URL: http://www.olsstad.no
    Did you changes something? Or what makes you think .htaccess works now?

    Thread Starter Olsstad

    (@olsstad)

    Some more info. Without .htaccess (temporarily renamed to ahtaccess) I can
    – Log on with all user ids, incl admin
    – Browse the index page
    – Log on to dashboard and verify that all my pages and posts still exist

    But I can not access any page but the index page. What is the precondition for WP to find the page, something with permalinks? Is .htaccess needed for directing the user to the right address?

    I’m running on an Appache server

    David

    (@thatseoguydavid)

    You could try this one suggested by the wp codex

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

    If that doesn’t work I don’t think i’ll be able to help you 🙁

    David

    (@thatseoguydavid)

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘403-Forbidden and .htaccess’ is closed to new replies.