Activity Stream
48,167 MEMBERS
61108 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 10 of 10
  1.     
    #1
    Member

    Default Problem with htaccess [Resolved]

    All of a sudden my website started showing "403 Forbidden" error messages.
    I tried to find the reason for this and read that deleting htaccess could solve the problem, tried with renaming it and my index page of my website started working again. Although all my other pages showed 404 not found.
    The new htaccess file that was generated was empty.
    I tried to paste the content of the old file into the empty file again, to revert the change so got 403 Forbidden again.

    What should I do to solve this?
    Content of htaccess:
    # 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
    xandor Reviewed by xandor on . Problem with htaccess All of a sudden my website started showing "403 Forbidden" error messages. I tried to find the reason for this and read that deleting htaccess could solve the problem, tried with renaming it and my index page of my website started working again. Although all my other pages showed 404 not found. The new htaccess file that was generated was empty. I tried to paste the content of the old file into the empty file again, to revert the change so got 403 Forbidden again. What should I do to Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Banned
    Website's:
    CuraShare.Net CuraShare.Me CuraShare.Info
    It has nothing to do with the content of the .htaccess file...

    Check if the files have read+execution rights...

  4.     
    #3
    Member
    Website's:
    Nerdy-Tutorials.com Mp3viddown.com Filmlab.eu
    it would be nice if u could tell us the site

  5.     
    #4
    Member
    Think it doesnt matter if you know the site (since it just shows this message):
    Forbidden

    You don't have permission to access / on this server.
    Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.


    <removed website name>


    Why would read and executions rights change all of a sudden?

    Not sure which files to check, index.php got read and write permissions, not execute.

    Dont know much about what permissions they need, if it is execute to show them in browser. And dunno how to change the permissions for all the needed files. If that is the case.

  6.     
    #5
    Banned
    Website's:
    CuraShare.Net CuraShare.Me CuraShare.Info
    Can you check the contents of the error log?

  7.     
    #6
    Member
    [Sat Jan 14 23:33:14 2012] [error] [client] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden

    That error appeared around 300 times in the last 10 min in error log.

    Btw, the exact permission files got is 0644

  8.     
    #7
    Member
    for shits and giggles try

    Code: 
    Options +FollowSymLinks
    # 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
    also you on shared hosting or vps/dedi?
    and did you change host or same host as when it was working?

  9.     
    #8
    Member
    Think you just saved my website with that "Options +FollowSymLinks" line. It started working again right after I changed it.

    THANK YOU!!

    It is shared hosting and it is same host. I didnt change anything, I worked earlier today and then when I checked back it stopped working.
    Only thing I did today was writing a post and saving the draft.

  10.     
    #9
    Member
    glad to help, and most likely (since its shared hosting) the host did something while updating something on server...but all is well now

  11.     
    #10
    Member
    Quote Originally Posted by xandor View Post
    Think you just saved my website with that "Options +FollowSymLinks" line. It started working again right after I changed it.

    THANK YOU!!

    It is shared hosting and it is same host. I didnt change anything, I worked earlier today and then when I checked back it stopped working.
    Only thing I did today was writing a post and saving the draft.
    It should work without that in the .htaccess file.

    In addition to checking the r/w permissions on the files, check the user and group ownership of your index.(php|html|html etc) file.

    It could be, and not sure how, that the permissions have changed.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problem with .htaccess
    By Uchiha-Madara in forum DLE
    Replies: 7
    Last Post: 4th Apr 2012, 04:58 PM
  2. Help - Problem with .htaccess DLE
    By Uchiha-Madara in forum Web Application/Script Support
    Replies: 3
    Last Post: 15th Jan 2012, 01:33 PM
  3. how can fix htaccess problem on NGINX ?
    By chiwan in forum Server Management
    Replies: 7
    Last Post: 25th Sep 2011, 04:12 PM
  4. problem with my .htaccess file for datalife
    By zebono2 in forum Web Development Area
    Replies: 3
    Last Post: 24th Sep 2011, 04:33 PM
  5. .htaccess problem in DLE
    By Arthur in forum Webmaster Discussion
    Replies: 25
    Last Post: 8th Mar 2011, 06:39 PM

Tags for this Thread

BE SOCIAL