403 .htaccess problem
-
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 u57228931Don’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 permittedSo 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!
-
OK…
create a copy of your .htaccess file, then replace all the lines by :
Order allow,deny
allow from allThen, 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.
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?
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.
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.
The topic ‘403 .htaccess problem’ is closed to new replies.