Forums

403 .htaccess problem (5 posts)

  1. Gizoku
    Member
    Posted 1 year ago #

    Hi,

    I'm completely new to all of this and after getting wordpress installed, all of my pages give 403 errors. After doing a bit of searching around I learned about .htaccess and found mine, here it is:

    Options +Indexes
    Satisfy any
    Order Deny,Allow
    Allow from 172.17.0.0/16
    Allow from 212.227.35.64/27
    Allow from 212.227.34.151
    Allow from 212.227.34.190
    Deny from all
    RemoveType .html .gif
    AuthType Basic
    AuthName "Access for /logs"
    AuthUserFile /kunden/homepages/7/d315386974/htpasswd
    require user u57228931

    Don't ask me why, but my gut feeling was "Deny from all" was the problem. So when I tried changing the permission on my .htaccess file from 664 to 775, filezilla throws out this message:

    Status: Set permissions of '/logs/.htaccess' to '775'
    Command: SITE CHMOD 775 .htaccess
    Response: 550 CHMOD 775 .htaccess: Operation not permitted

    So I'm kind of at a loss for what to do now... none of the pages on my site are working and this seems like the only solution, but I don't have permission to edit my .htaccess file, is this something to do with my host?

    I'd much appreciate if someone could shed some light on this.

    Thanks!

  2. riversatile
    Member
    Posted 1 year ago #

    OK...

    create a copy of your .htaccess file, then replace all the lines by :

    Order allow,deny
    allow from all

    Then, save this file as .htaccess and upload it / overwrite it on your server. And you'll see what's happen. This can't impact your server.

  3. Gizoku
    Member
    Posted 1 year ago #

    I didn't have permission to change/edit the .htaccess file on my sever, even when I changed the permissions. I got that message I posted from the log in filezilla. I'm thinking it's something to do with my host?

  4. Gizoku
    Member
    Posted 1 year ago #

    Basically, I can't change the file permission on .htaccess from 664. My web host is 1&1 UK. The .htaccess file is currently in a folder named 'logs' which is in the root directory. This is the file I don't have access to change. I tried creating a new .htaccess file in the root directory containing what you posted but I still get 403 errors.

  5. jpower38
    Member
    Posted 9 months ago #

    I had the same problem, but was able to copy the .htaccess file onto my hard drive, made the necessary adjustments (wordpress gave me a code to insert into the file) and saved it. I then deleted the .htaccess file in my root directory (because it wouldn't let me edit or overwrite) and uploaded the copy to replace it. This seemed to do the trick, my pages are linking nicely.

Topic Closed

This topic has been closed to new replies.

About this Topic