• Resolved ilemoned

    (@ilemoned)


    Apache/2.0.52: (CentOS)
    PHP: 4.3.9
    mod_rewrite: loaded
    AllowOverride: “All” (the customer service said so)

    I created a blank .htaccess in the root directory, then CHMOD to 666, specified the structure: “/%category%/%postname%”. But after clicking on the button “Update Permalink Structure”, my browser returns a “403 Forbidden”, and the whole site is down, I can only see an error page possibly set by my host.

    But the .htaccess file can be updated successfully, because it became 205byte after that, and what has been written into it is (I added the “===” ) :

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

    # END WordPress
    ====================================

    As long as the .htaccess exists, my site is not available.

    My wordpress can be viewed only when the .htaccess is a blank file(with any attribute) or doesn’t exist, or I use default permalinks.

    Please someone help me. The host is very expensive….. 🙁

    Thank you guys.

Viewing 4 replies - 1 through 4 (of 4 total)
  • With respect, an expensive host should have a clue.

    Are you absolutely certain that your server DOES support .htaccess?

    Thread Starter ilemoned

    (@ilemoned)

    I think the server supports .htaccess. I listed something about the server at the beginning of the post.

    Anything else please?

    my first inclination would be to start with a new blank file, making sure there are no spaces, blanks, carriage returns, nothing in the file. Then try again.

    Thread Starter ilemoned

    (@ilemoned)

    I’ve already tried hundreds of times…

    Yes, no space, no returns, an absolutely blank .htaccess, then

    1. I chmod it to 666, and let wordpress modify the file.
    or
    2. I manually modified the file.

    then = 403 forbidden T___T

    ———————————

    I heard that CentOS, by default, will have AllowOverride off. Is that real? I’m gonna confirm this again from my host’s provider.

    Anything else I can do? Or how can I check out if AllowOverride is on?

    Thank you miklb & podz for your help!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘.htaccess kills’ is closed to new replies.