• Just trying to set up a new site and after installing WP, using the hosting company install software, which installs 4.7.1.

    Then in admin page i upgrade to 4.7.2, and update Translations.

    There are not plugins installed except what is delivered with WP install.

    Using the SETTINGS menu option i change some of the basic settings, including the Permalinks options to choose a custom setting.

    Before i change this setting there is no htaccess file, after i complete the Permalinks change the new htaccess file is created.

    If i log out of wp-admin now, any subsequent attempt to log in to wp-admin results in a browser error indicating FORBIDDEN… you do not have permission to access this ……

    If i delete or rename the htaccess file i can sign on to wp-admin again.

    If i change the Permalinks option to Plain…. the htaccess file created does not lock me out of wp-admin.

    Is this how WP is intended to work please? as i have not noticed this before ???

    thx

    John

Viewing 15 replies - 1 through 15 (of 18 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please paste the troublesome .htaccess file

    Thread Starter ejwjohn

    (@ejwjohn)

    Hello,

    Here it is :-

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

    # END WordPress

    Please be advised the ref to xyz123 is the WP Directory for this test site.

    thx

    John

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I don’t see anything wrong there, so I’d look (1) at the file permissisons on the wp-admin directory and (2) whether there’s another .htaccess inside wp-admin

    Thread Starter ejwjohn

    (@ejwjohn)

    Hello,

    There is no other htaccess file and the file permissions on the wp-admin are 757

    John

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Should be 755, but that doesn’t matter. Do you have any security plugins?

    Thread Starter ejwjohn

    (@ejwjohn)

    Hello,

    No plugins added just basic WP installation.

    John

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    what’s the specific file you get the 403 on? Can you login via site.com/wp-login.php? What’s in the server’s error log?

    Thread Starter ejwjohn

    (@ejwjohn)

    ok,

    One thing i have just noticed, is that if i use the following format to access the wp admin page it works …website name.com/subdirectory/wp-admin/

    but if i leave off the trailing / after wp-admin it fails !!!!!

    John

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please reset all your file permissions — Directories to 755, files to 644. If you use the FileZilla FTP program you can do this in a couple of clicks.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please reset all your file permissions — Directories to 755, files to 644. If you use the FileZilla FTP program you can do this in a couple of clicks.

    Thread Starter ejwjohn

    (@ejwjohn)

    If i try to use website.com/subdirectory/wp-admin.php i get WP 404 page saying ooops that page cannot be found.

    I use Cyberducj ( i am on OSX System) do you know how i reset file persmissions as requested please?

    John

    Thread Starter ejwjohn

    (@ejwjohn)

    Hello,

    I get the 403 error on the following:-

    website.com/subdirectory/wp-admin

    thx

    John

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You get a 404 because there is no such file, nor should there be.

    I thnk bash scripts will run on OS/X:

    https://gist.github.com/macbleser/9136424

    Thread Starter ejwjohn

    (@ejwjohn)

    Sorry, but you are moving into an area i am not comfortable with now i have limited knowledge on unix etc…..

    John

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Sorry. You need to google around to find you how to use Cyberduck as that’s not an environment I can support.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘WordPress generated htaccess locks me out of wp-admin’ is closed to new replies.